httplog

package
Version: v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2014 License: MIT Imports: 9 Imported by: 0

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
}

func NewResponseLogger

func NewResponseLogger(delegate http.Handler) *ResponseLogger

func (*ResponseLogger) ServeHTTP

func (l *ResponseLogger) ServeHTTP(w http.ResponseWriter, req *http.Request)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL