MCPcopy Create free account
hub / github.com/prometheus/client_golang / WithAPIHTTPClient

Function WithAPIHTTPClient

exp/api/remote/remote_api.go:94–99  ·  view source on GitHub ↗

WithAPIHTTPClient returns APIOption that allows providing http client.

(client *http.Client)

Source from the content-addressed store, hash-verified

92
93// WithAPIHTTPClient returns APIOption that allows providing http client.
94func WithAPIHTTPClient(client *http.Client) APIOption {
95 return func(o *apiOpts) error {
96 o.client = client
97 return nil
98 }
99}
100
101// WithAPIPath returns APIOption that allows providing path to send remote write requests to.
102func WithAPIPath(path string) APIOption {

Callers 1

Calls

no outgoing calls

Tested by 1