MCPcopy
hub / github.com/prometheus/client_golang / roundTripper

Method roundTripper

api/client.go:53–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func (cfg *Config) roundTripper() http.RoundTripper {
54 if cfg.RoundTripper == nil {
55 return DefaultRoundTripper
56 }
57 return cfg.RoundTripper
58}
59
60func (cfg *Config) client() http.Client {
61 if cfg.Client == nil {

Callers 2

TestConfigFunction · 0.95
clientMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestConfigFunction · 0.76