WithTrustedProxies adds trusted proxies from which proxy headers are trusted.
(cidrs ...string)
| 105 | |
| 106 | // WithTrustedProxies adds trusted proxies from which proxy headers are trusted. |
| 107 | func WithTrustedProxies(cidrs ...string) Option { |
| 108 | return func(o *options) { |
| 109 | o.trustedProxies = append(o.trustedProxies, cidrs...) |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | // WithLogIgnoreMethods sets a list of methods for which no log messages are printed on success. |
| 114 | func WithLogIgnoreMethods(methods []string) Option { |