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

Function WithDisableChunkedEncoding

runtime/mux.go:134–138  ·  view source on GitHub ↗

WithDisableChunkedEncoding disables the Transfer-Encoding: chunked header for streaming responses. This is useful for streaming implementations that use Content-Length, which is mutually exclusive with Transfer-Encoding:chunked. Note that this option will not automatically add Content-Length headers

()

Source from the content-addressed store, hash-verified

132// Content-Length, which is mutually exclusive with Transfer-Encoding:chunked.
133// Note that this option will not automatically add Content-Length headers, so it should be used with caution.
134func WithDisableChunkedEncoding() ServeMuxOption {
135 return func(mux *ServeMux) {
136 mux.disableChunkedEncoding = true
137 }
138}
139
140// SetQueryParameterParser sets the query parameter parser, used to populate message from query parameters.
141// Configuring this will mean the generated OpenAPI output is no longer correct, and it should be

Callers 1

Calls

no outgoing calls

Tested by 1