Fix stats responseRecorder Hijacker
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
aa4ed088bb
commit
71cec1580b
3 changed files with 36 additions and 4 deletions
12
middlewares/stateful.go
Normal file
12
middlewares/stateful.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package middlewares
|
||||
|
||||
import "net/http"
|
||||
|
||||
// Stateful interface groups all http interfaces that must be
|
||||
// implemented by a stateful middleware (ie: recorders)
|
||||
type Stateful interface {
|
||||
http.ResponseWriter
|
||||
http.Hijacker
|
||||
http.Flusher
|
||||
http.CloseNotifier
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue