package
0.0.0-20250305165956-269064b29c6f
Repository: https://github.com/bryk-io/pkg.git
Documentation: pkg.go.dev

# Functions

AuthorizationCookie allows the proxy to load authorization credentials from a cookie, when present, and forward the token on the "Authorization" header on requests behind the proxy.
CheckOrigin should return true if the request Origin header is acceptable.
EnableCompression specify if the server should attempt to negotiate per message compression (RFC 7692).
ForwardHeaders sets which HTTP headers (case-insensitive) should be forward in requests behind the proxy.
HandshakeTimeout specifies the duration for the handshake to complete.
MethodOverride allows to map an incoming URL parameter and use it to adjust the HTTP method for requests behind the proxy.
New returns a new WebSocket proxy instance.
RemoveResultWrapper fixes a non-standard behavior when the gateway adds a wrapper to all messages received from a streaming operation.
RequestMutator provides a final configuration point to customize or adjust the outgoing HTTP request before is forwarded behind the proxy.
SubProtocols specifies the server's supported protocols in order of preference.

# Structs

Proxy - WebSocket proxy based on the original implementation by @tmc.

# Type aliases

ProxyOption provides functional-style configuration settings for a proxy instance.