MCPcopy
hub / github.com/uber/aresdb / WriteHeader

Method WriteHeader

utils/http.go:92–95  ·  view source on GitHub ↗

WriteHeader stores the status code as well as write the status code to original response writer.

(code int)

Source from the content-addressed store, hash-verified

90
91// WriteHeader stores the status code as well as write the status code to original response writer.
92func (rw *responseWriter) WriteHeader(code int) {
93 rw.statusCode = code
94 rw.ResponseWriter.WriteHeader(code)
95}
96
97// WithMetricsFunc will send stats like latency, rps and returning status code after the http handler finishes.
98// It has to be applied to the actual handler function who serves the http request.

Callers 9

connector_test.goFile · 0.80
driver_test.goFile · 0.80
controller_test.goFile · 0.80
handleAQLInternalMethod · 0.80
ServeHTTPMethod · 0.80
RespondBytesWithCodeFunction · 0.80
writeJSONBytesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected