Versions in this module Expand all Collapse all v1 v1.0.2 Sep 23, 2023 v1.0.1 Sep 23, 2023 Changes in this version + func ClientHealthCheck(ctx context.Context, backendConn *grpc.ClientConn, service string, ...) error + func ListGRPCResources(server *grpc.Server) []string + func WebsocketRequestOrigin(req *http.Request) (string, error) + type Option func(*options) + func WithAllowNonRootResource(allowNonRootResources bool) Option + func WithAllowedRequestHeaders(headers []string) Option + func WithCorsForRegisteredEndpointsOnly(onlyRegistered bool) Option + func WithCorsMaxAge(maxAge time.Duration) Option + func WithEndpointsFunc(endpointsFunc func() []string) Option + func WithExposedResponseHeaders(headers []string) Option + func WithOriginFunc(originFunc func(origin string) bool) Option + func WithWebsocketCompressionMode(compressionMode websocket.CompressionMode) Option + func WithWebsocketOriginFunc(websocketOriginFunc func(req *http.Request) bool) Option + func WithWebsocketPingInterval(websocketPingInterval time.Duration) Option + func WithWebsockets(enableWebsockets bool) Option + func WithWebsocketsMessageReadLimit(websocketReadLimit int64) Option + type WrappedGrpcServer struct + func WrapHandler(handler http.Handler, options ...Option) *WrappedGrpcServer + func WrapServer(server *grpc.Server, options ...Option) *WrappedGrpcServer + func (w *WrappedGrpcServer) HandleGrpcWebRequest(resp http.ResponseWriter, req *http.Request) + func (w *WrappedGrpcServer) HandleGrpcWebsocketRequest(resp http.ResponseWriter, req *http.Request) + func (w *WrappedGrpcServer) IsAcceptableGrpcCorsRequest(req *http.Request) bool + func (w *WrappedGrpcServer) IsGrpcWebRequest(req *http.Request) bool + func (w *WrappedGrpcServer) IsGrpcWebSocketRequest(req *http.Request) bool + func (w *WrappedGrpcServer) ServeHTTP(resp http.ResponseWriter, req *http.Request)