refactor: Use Statefull interface in access log.

This commit is contained in:
Fernandez Ludovic 2017-06-08 21:14:30 +02:00 committed by Ludovic Fernandez
parent 18c3d8dc62
commit 7399a83c74

View file

@ -5,13 +5,12 @@ import (
"fmt" "fmt"
"net" "net"
"net/http" "net/http"
"github.com/containous/traefik/middlewares"
) )
var ( var (
_ http.ResponseWriter = &captureResponseWriter{} _ middlewares.Stateful = &captureResponseWriter{}
_ http.Hijacker = &captureResponseWriter{}
_ http.Flusher = &captureResponseWriter{}
_ http.CloseNotifier = &captureResponseWriter{}
) )
// captureResponseWriter is a wrapper of type http.ResponseWriter // captureResponseWriter is a wrapper of type http.ResponseWriter