package
0.0.0-20200312095047-03468c9a6c6b
Repository: https://github.com/buildingrobotics/grpc-websocket-proxy.git
Documentation: pkg.go.dev

# Functions

WebsocketProxy attempts to expose the underlying handler as a bidi websocket stream with newline-delimited JSON as the content encoding.
WithForwardedHeaders allows controlling which headers are forwarded.
WithLogger allows a custom FieldLogger to be supplied.
WithMaxRespBodyBufferSize allows specification of a custom size for the buffer used while reading the response body.
WithMethodParamOverride allows specification of the special http parameter that is used in the proxied streaming request.
WithRequestMutator allows a custom RequestMutatorFunc to be supplied.
WithTokenCookieName allows specification of the cookie that is supplied as an upstream 'Authorization: Bearer' http header.

# Variables

MethodOverrideParam defines the special URL parameter that is translated into the subsequent proxied streaming http request's method.
TokenCookieName defines the cookie name that is translated to an 'Authorization: Bearer' header in the streaming http request's headers.

# Structs

Proxy provides websocket transport upgrade to compatible endpoints.

# Interfaces

Logger collects log messages.

# Type aliases

Option allows customization of the proxy.
RequestMutatorFunc can supply an alternate outgoing request.