MCPcopy
hub / github.com/urfave/negroni / ServeHTTP

Method ServeHTTP

negroni.go:25–25  ·  view source on GitHub ↗
(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Source from the content-addressed store, hash-verified

23// If the Handler writes to the ResponseWriter, the next http.HandlerFunc should not be invoked.
24type Handler interface {
25 ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
26}
27
28// HandlerFunc is an adapter to allow the use of ordinary functions as Negroni handlers.

Callers 15

TestRecoveryFunction · 0.65
TestRecovery_formatterFunction · 0.65
BenchmarkNegroniFunction · 0.65
Test_LoggerFunction · 0.65
Test_LoggerCustomFormatFunction · 0.65
TestStaticFunction · 0.65
TestStaticHeadFunction · 0.65

Implementers 6

Recoveryrecovery.go
voidHandlernegroni_bench_test.go
Loggerlogger.go
middlewarenegroni.go
Negroninegroni.go
Staticstatic.go

Calls

no outgoing calls

Tested by 15

TestRecoveryFunction · 0.52
TestRecovery_formatterFunction · 0.52
BenchmarkNegroniFunction · 0.52
Test_LoggerFunction · 0.52
Test_LoggerCustomFormatFunction · 0.52
TestStaticFunction · 0.52
TestStaticHeadFunction · 0.52