dex/vendor/github.com/coreos/go-oidc/http/middleware.go
2016-03-09 13:04:05 -08:00

14 lines
240 B
Go

package http
import (
"net/http"
)
type LoggingMiddleware struct {
Next http.Handler
}
func (l *LoggingMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request) {
log.Infof("HTTP %s %v", r.Method, r.URL)
l.Next.ServeHTTP(w, r)
}