MCPcopy
hub / github.com/caddyserver/caddy / responseRecorder

Struct responseRecorder

modules/caddyhttp/responsewriter.go:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63var ErrNotImplemented = fmt.Errorf("method not implemented")
64
65type responseRecorder struct {
66 *ResponseWriterWrapper
67 statusCode int
68 buf *bytes.Buffer
69 shouldBuffer ShouldBufferFunc
70 size int
71 wroteHeader bool
72 stream bool
73
74 readSize *int
75}
76
77// NewResponseRecorder returns a new ResponseRecorder that can be
78// used instead of a standard http.ResponseWriter. The recorder is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected