MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / WriteHeader

Method WriteHeader

cache/tmp_file_response_writer.go:141–145  ·  view source on GitHub ↗

WriteHeader captures response status code.

(statusCode int)

Source from the content-addressed store, hash-verified

139
140// WriteHeader captures response status code.
141func (rw *TmpFileResponseWriter) WriteHeader(statusCode int) {
142 rw.statusCode = statusCode
143 // Do not call rw.ClickhouseResponseWriter.WriteHeader here
144 // It will be called explicitly in Finalize / Unregister.
145}
146
147// StatusCode returns captured status code from WriteHeader.
148func (rw *TmpFileResponseWriter) StatusCode() int {

Callers 2

serveFromCacheMethod · 0.95

Calls

no outgoing calls

Tested by 1