WithUnescapingMode sets the escaping type. See the definitions of UnescapingMode for more information.
(mode UnescapingMode)
| 113 | // WithUnescapingMode sets the escaping type. See the definitions of UnescapingMode |
| 114 | // for more information. |
| 115 | func WithUnescapingMode(mode UnescapingMode) ServeMuxOption { |
| 116 | return func(serveMux *ServeMux) { |
| 117 | serveMux.unescapingMode = mode |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | // WithMiddlewares sets server middleware for all handlers. This is useful as an alternative to gRPC |
| 122 | // interceptors when using the direct-to-implementation registration methods and cannot rely |
no outgoing calls