Documentation
¶
Index ¶
Constants ¶
View Source
const (
CacheHeader = "X-Cache"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseLogger ¶
type ResponseLogger struct {
http.Handler
DumpRequests, DumpErrors, DumpResponses bool
// contains filtered or unexported fields
}
func NewResponseLogger ¶
func NewResponseLogger(delegate http.Handler, log *logger.Logger) *ResponseLogger
func (*ResponseLogger) ServeHTTP ¶
func (l *ResponseLogger) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.