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

Method HTTPClient

pkg/component/http.go:25–27  ·  view source on GitHub ↗

HTTPClient returns a new *http.Client with a default timeout and a configured transport.

(ctx context.Context, opts ...httpclient.Option)

Source from the content-addressed store, hash-verified

23
24// HTTPClient returns a new *http.Client with a default timeout and a configured transport.
25func (c *Component) HTTPClient(ctx context.Context, opts ...httpclient.Option) (*http.Client, error) {
26 return httpclient.NewProvider(c).HTTPClient(ctx, opts...)
27}

Callers

nothing calls this directly

Implementers 1

Componentpkg/component/component.go

Calls 2

NewProviderFunction · 0.92
HTTPClientMethod · 0.65

Tested by

no test coverage detected