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

Function WithCache

pkg/httpclient/http.go:57–61  ·  view source on GitHub ↗

WithCache enables caching at transport level.

(b bool)

Source from the content-addressed store, hash-verified

55
56// WithCache enables caching at transport level.
57func WithCache(b bool) Option {
58 return Option(func(o *httpClientOptions) {
59 o.cache = true
60 })
61}
62
63// WithTLSConfig configures the TLS configuration to be used by the transport.
64func WithTLSConfig(c *tls.Config) Option {

Callers 7

FetcherMethod · 0.92
FetcherMethod · 0.92
NewTemplateStoreMethod · 0.92
FetcherMethod · 0.92
FetcherMethod · 0.92
FetcherMethod · 0.92
FetcherMethod · 0.92

Calls 1

OptionFuncType · 0.70

Tested by

no test coverage detected