Add support for logging HTTP requests in the combined log format

This commit is contained in:
Zlatko Čalušić
2017-05-31 23:29:21 +02:00
parent ed59c2ec28
commit c7ffc41a65
22 changed files with 2489 additions and 4 deletions

21
vendor/github.com/gorilla/handlers/handlers_go18.go generated vendored Normal file
View File

@@ -0,0 +1,21 @@
// +build go1.8
package handlers
import (
"fmt"
"net/http"
)
type loggingResponseWriter interface {
commonLoggingResponseWriter
http.Pusher
}
func (l *responseLogger) Push(target string, opts *http.PushOptions) error {
p, ok := l.w.(http.Pusher)
if !ok {
return fmt.Errorf("responseLogger does not implement http.Pusher")
}
return p.Push(target, opts)
}