diff options
| author | Adnan Maolood <[email protected]> | 2021-02-24 08:18:21 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-24 08:18:23 -0500 |
| commit | 069b473c2816e052dae82f81c812d21848056c78 (patch) | |
| tree | a27594ee9f72a3aabf10f79c248fed1659eac8ca /response.go | |
| parent | Only use fs.go when fs.FS is available (diff) | |
| download | go-gemini-069b473c2816e052dae82f81c812d21848056c78.tar.xz go-gemini-069b473c2816e052dae82f81c812d21848056c78.zip | |
Implement TimeoutHandler by wrapping ResponseWriter
Diffstat (limited to 'response.go')
| -rw-r--r-- | response.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/response.go b/response.go index 6490579..2ab3bfd 100644 --- a/response.go +++ b/response.go @@ -175,8 +175,6 @@ type ResponseWriter interface { // or clear those deadlines as needed. Hijack() net.Conn - reset(io.WriteCloser) - // unexported method so we can extend this interface over time // without breaking existing code. Implementers must embed a concrete // type from elsewhere. @@ -200,14 +198,6 @@ func newResponseWriter(w io.WriteCloser) *responseWriter { } } -func (w *responseWriter) reset(wc io.WriteCloser) { - w.bw.Reset(wc) - *w = responseWriter{ - bw: w.bw, - cl: wc, - } -} - func (w *responseWriter) SetMediaType(mediatype string) { w.mediatype = mediatype } |