Files
coder/coderd/httpapi/noop.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
348 B
Go
Raw Normal View History

package httpapi
import "net/http"
// NoopResponseWriter is a response writer that does nothing.
type NoopResponseWriter struct{}
func (NoopResponseWriter) Header() http.Header { return http.Header{} }
func (NoopResponseWriter) Write(p []byte) (int, error) { return len(p), nil }
func (NoopResponseWriter) WriteHeader(int) {}