WithContextFiller sets context fillers that are executed on every request context.
(contextFillers ...fillcontext.Filler)
| 88 | |
| 89 | // WithContextFiller sets context fillers that are executed on every request context. |
| 90 | func WithContextFiller(contextFillers ...fillcontext.Filler) Option { |
| 91 | return func(o *options) { |
| 92 | o.contextFillers = append(o.contextFillers, contextFillers...) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // WithTrustedProxies adds trusted proxies from which proxy headers are trusted. |
| 97 | func WithTrustedProxies(cidrs ...string) Option { |