MCPcopy
hub / github.com/uber/aresdb / WithPanicHandling

Function WithPanicHandling

api/panic_handler.go:27–31  ·  view source on GitHub ↗

WithPanicHandling will apply panic handler to regular http handler.

(handler http.Handler)

Source from the content-addressed store, hash-verified

25
26// WithPanicHandling will apply panic handler to regular http handler.
27func WithPanicHandling(handler http.Handler) PanicHandler {
28 return PanicHandler{
29 handler: handler,
30 }
31}
32
33// ServeHTTP serves http request for PanicHandler.
34func (handler PanicHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) {

Calls

no outgoing calls

Tested by

no test coverage detected