mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 04:42:33 +02:00
15 lines
271 B
Go
15 lines
271 B
Go
package http
|
|
|
|
import "net/http"
|
|
|
|
type DummyResponseWriter struct{}
|
|
|
|
func (w DummyResponseWriter) Header() http.Header {
|
|
return make(http.Header)
|
|
}
|
|
|
|
func (w DummyResponseWriter) Write([]byte) (_ int, _ error) {
|
|
return
|
|
}
|
|
|
|
func (w DummyResponseWriter) WriteHeader(int) {}
|