Skip to content

Commit d40ec9c

Browse files
committed
forgot to commit a file
1 parent dbdf49f commit d40ec9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

coderd/httpmw/noop.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package httpmw
2+
3+
import "net/http"
4+
5+
// noopResponseWriter is a response writer that does nothing.
6+
type noopResponseWriter struct{}
7+
8+
func (noopResponseWriter) Header() http.Header { return http.Header{} }
9+
func (noopResponseWriter) Write(p []byte) (int, error) { return len(p), nil }
10+
func (noopResponseWriter) WriteHeader(int) {}

0 commit comments

Comments
 (0)