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

Method StatusCode

exp/api/remote/remote_headers.go:129–131  ·  view source on GitHub ↗

StatusCode returns the current HTTP status code.

()

Source from the content-addressed store, hash-verified

127
128// StatusCode returns the current HTTP status code.
129func (w *WriteResponse) StatusCode() int {
130 return w.statusCode
131}
132
133// SetExtraHeader adds additional headers to be set in the response (apart from stats headers)
134func (w *WriteResponse) SetExtraHeader(key, value string) {

Callers 2

TestWriteResponseFunction · 0.95
ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestWriteResponseFunction · 0.76