MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / WithDisablePathLengthFallback

Function WithDisablePathLengthFallback

runtime/mux.go:269–273  ·  view source on GitHub ↗

WithDisablePathLengthFallback returns a ServeMuxOption for disable path length fallback.

()

Source from the content-addressed store, hash-verified

267
268// WithDisablePathLengthFallback returns a ServeMuxOption for disable path length fallback.
269func WithDisablePathLengthFallback() ServeMuxOption {
270 return func(serveMux *ServeMux) {
271 serveMux.disablePathLengthFallback = true
272 }
273}
274
275// WithDisableHTTPMethodOverride returns a ServeMuxOption that disables the
276// X-HTTP-Method-Override header handling.

Callers 1

TestMuxServeHTTPFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestMuxServeHTTPFunction · 0.74