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

Function newClient

config/http_config.go:599–601  ·  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

597
598// NewClient returns a http.Client using the specified http.RoundTripper.
599func newClient(rt http.RoundTripper) *http.Client {
600 return &http.Client{Transport: rt}
601}
602
603// NewClientFromConfig returns a new HTTP client configured for the
604// given config.HTTPClientConfig and config.HTTPClientOption.

Callers 1

NewClientFromConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…