WithDisablePathLengthFallback returns a ServeMuxOption for disable path length fallback.
()
| 267 | |
| 268 | // WithDisablePathLengthFallback returns a ServeMuxOption for disable path length fallback. |
| 269 | func 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. |
no outgoing calls