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

FuncType HTTPClientOption

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

HTTPClientOption defines an option that can be applied to the HTTP client.

func(options *httpClientOptions)

Source from the content-addressed store, hash-verified

434
435// HTTPClientOption defines an option that can be applied to the HTTP client.
436type HTTPClientOption func(options *httpClientOptions)
437
438// WithDialContextFunc allows you to override func gets used for the actual dialing. The default is `net.Dialer.DialContext`.
439func WithDialContextFunc(fn DialContextFunc) HTTPClientOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected