MCPcopy Create free account
hub / github.com/brimdata/super / newRecordingResponseWriter

Function newRecordingResponseWriter

service/middleware.go:105–110  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

103}
104
105func newRecordingResponseWriter(w http.ResponseWriter) *recordingResponseWriter {
106 return &recordingResponseWriter{
107 ResponseWriter: w,
108 statusCode: 200, // Default status code is 200.
109 }
110}
111
112func (r *recordingResponseWriter) Flush() {
113 if flusher, ok := r.ResponseWriter.(http.Flusher); ok {

Callers 1

accessLogMiddlewareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected