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

Function WithHost

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

WithHost allows setting the host header.

(host string)

Source from the content-addressed store, hash-verified

565
566// WithHost allows setting the host header.
567func WithHost(host string) HTTPClientOption {
568 return httpClientOptionFunc(func(opts *httpClientOptions) {
569 opts.host = host
570 })
571}
572
573type secretManagerOption struct {
574 secretManager SecretManager

Callers 1

TestHostFunction · 0.85

Calls 1

httpClientOptionFuncFuncType · 0.85

Tested by 1

TestHostFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…