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
()
| 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. |
| 134 | func 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 |
no outgoing calls