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

Method Header

prometheus/push/push.go:208–211  ·  view source on GitHub ↗

Header sets a custom HTTP header for the Pusher's client. For convenience, this method returns a pointer to the Pusher itself.

(header http.Header)

Source from the content-addressed store, hash-verified

206// Header sets a custom HTTP header for the Pusher's client. For convenience, this method
207// returns a pointer to the Pusher itself.
208func (p *Pusher) Header(header http.Header) *Pusher {
209 p.header = header
210 return p
211}
212
213// BasicAuth configures the Pusher to use HTTP Basic Authentication with the
214// provided username and password. For convenience, this method returns a

Callers 6

testHandlerFunction · 0.45
TestPushFunction · 0.45
TestWriteResponseFunction · 0.45
SetHeadersMethod · 0.45
whatsUpHandlerFunction · 0.45
whatsUpHandlerFunction · 0.45

Calls

no outgoing calls

Tested by 3

testHandlerFunction · 0.36
TestPushFunction · 0.36
TestWriteResponseFunction · 0.36