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

Method Stats

exp/api/remote/remote_headers.go:119–121  ·  view source on GitHub ↗

Stats returns the current statistics.

()

Source from the content-addressed store, hash-verified

117
118// Stats returns the current statistics.
119func (w *WriteResponse) Stats() WriteResponseStats {
120 return w.WriteResponseStats
121}
122
123// SetStatusCode sets the HTTP status code for the response. http.StatusNoContent is the default unless 5xx is set.
124func (w *WriteResponse) SetStatusCode(code int) {

Callers 3

TestWriteResponseFunction · 0.95
CollectMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestWriteResponseFunction · 0.76