MCPcopy Create free account
hub / github.com/prometheus/common / newClient

Function newClient

config/http_config.go:474–476  ·  view source on GitHub ↗

NewClient returns a http.Client using the specified http.RoundTripper.

(rt http.RoundTripper)

Source from the content-addressed store, hash-verified

472
473// NewClient returns a http.Client using the specified http.RoundTripper.
474func newClient(rt http.RoundTripper) *http.Client {
475 return &http.Client{Transport: rt}
476}
477
478// NewClientFromConfig returns a new HTTP client configured for the
479// given config.HTTPClientConfig and config.HTTPClientOption.

Callers 1

NewClientFromConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected