package
1.1.0
Repository: https://github.com/cognusion/oxy.git
Documentation: pkg.go.dev

# Functions

BufferPool specifies a buffer pool for httputil.ReverseProxy.
ErrorHandler is a functional argument that sets error handler of the server.
IsWebsocketRequest determines if the specified HTTP request is a websocket handshake request.
Logger defines the logger the forwarder will use.
New creates an instance of Forwarder based on the provided list of configuration options.
PassHostHeader specifies if a client's Host header field should be delegated.
ResponseModifier defines a response modifier for the HTTP forwarder.
Rewriter defines a request rewriter for the HTTP forwarder.
RoundTripper sets a new http.RoundTripper Forwarder will use http.DefaultTransport as a default round tripper.
StateListener defines a state listener for the HTTP forwarder.
Stream specifies if HTTP responses should be streamed.
StreamingFlushInterval defines a streaming flush interval for the HTTP forwarder.
WebsocketConnectionClosedHook defines a hook called when websocket connection is closed.
WebsocketTLSClientConfig define the websocker client TLS configuration.

# Constants

Headers.
Headers.
Headers.
Headers.
Headers.
Headers.
Headers.
Headers.
Headers.
Connection states.
Connection states.
canonicalized version of "TE".
Headers.
Headers.
Headers.
Headers.
Headers.
Headers.
Headers.
Headers.
Headers.

# Variables

HopHeaders Hop-by-hop headers.
WebsocketDialHeaders Websocket dial headers.
WebsocketUpgradeHeaders Websocket upgrade headers.
XHeaders X-* headers.

# Structs

ErrorHandlingRoundTripper a error handling round tripper.
Forwarder wraps two traffic forwarding implementations: HTTP and websockets.
HeaderRewriter is responsible for removing hop-by-hop headers and setting forwarding headers.

# Interfaces

OxyLogger interface of the internal.
ReqRewriter can alter request headers and body.

# Type aliases

UrlForwardingStateListener URL forwarding state listener.