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

Struct userAgentRoundTripper

config/http_config.go:1166–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1164}
1165
1166type userAgentRoundTripper struct {
1167 userAgent string
1168 rt http.RoundTripper
1169}
1170
1171// NewUserAgentRoundTripper adds the user agent every request header.
1172func NewUserAgentRoundTripper(userAgent string, rt http.RoundTripper) http.RoundTripper {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected