Move ResponseWriter.Flush to Flusher interface

This commit is contained in:
Adnan Maolood
2021-02-17 11:44:11 -05:00
parent fb9b50871c
commit a3c1804395
3 changed files with 21 additions and 6 deletions

View File

@@ -376,7 +376,7 @@ func (srv *Server) respond(conn net.Conn) {
conn.SetWriteDeadline(time.Now().Add(d))
}
w := NewResponseWriter(conn)
w := newResponseWriter(conn)
req, err := ReadRequest(conn)
if err != nil {