MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithContextFiller

Function WithContextFiller

pkg/web/web.go:90–94  ·  view source on GitHub ↗

WithContextFiller sets context fillers that are executed on every request context.

(contextFillers ...fillcontext.Filler)

Source from the content-addressed store, hash-verified

88
89// WithContextFiller sets context fillers that are executed on every request context.
90func 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.
97func WithTrustedProxies(cidrs ...string) Option {

Callers 1

initWebMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected