refactor: Use Statefull interface in access log.
This commit is contained in:
parent
18c3d8dc62
commit
7399a83c74
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue