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

Method StatusCode

cache/tmp_file_response_writer.go:148–153  ·  view source on GitHub ↗

StatusCode returns captured status code from WriteHeader.

()

Source from the content-addressed store, hash-verified

146
147// StatusCode returns captured status code from WriteHeader.
148func (rw *TmpFileResponseWriter) StatusCode() int {
149 if rw.statusCode == 0 {
150 return http.StatusOK
151 }
152 return rw.statusCode
153}
154
155// Write writes b into rw.
156func (rw *TmpFileResponseWriter) Write(b []byte) (int, error) {

Callers 2

serveFromCacheMethod · 0.95

Calls

no outgoing calls

Tested by 1