Fix stats responseRecorder Hijacker

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2017-05-13 19:02:06 +02:00
parent aa4ed088bb
commit 71cec1580b
No known key found for this signature in database
GPG key ID: D808B4C167352E59
3 changed files with 36 additions and 4 deletions

12
middlewares/stateful.go Normal file
View 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
}