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

Function WithTLSConfig

pkg/httpclient/http.go:64–68  ·  view source on GitHub ↗

WithTLSConfig configures the TLS configuration to be used by the transport.

(c *tls.Config)

Source from the content-addressed store, hash-verified

62
63// WithTLSConfig configures the TLS configuration to be used by the transport.
64func WithTLSConfig(c *tls.Config) Option {
65 return Option(func(o *httpClientOptions) {
66 o.tlsConfig = c
67 })
68}
69
70// WithTLSConfigOptions configures the TLS configuration options provided to the TLS configuration provider
71// by the transport.

Callers 2

httpClientMethod · 0.92
NewClientFunction · 0.92

Calls 1

OptionFuncType · 0.70

Tested by

no test coverage detected