Documentation ¶
Overview ¶
Package httphandlers has a number of subpackages which provide HTTP handlers which are useful in an operational context.
Directories ¶
Path | Synopsis |
---|---|
Package debug provides a handler which adds additional debug endpoints, including profiling and expvars.
|
Package debug provides a handler which adds additional debug endpoints, including profiling and expvars. |
Package logging provides a fast, asynchronous request logger which outputs NCSA/Apache combined logs.
|
Package logging provides a fast, asynchronous request logger which outputs NCSA/Apache combined logs. |
Package metrics provides an HTTP handler which registers counters for the number of requests received and responses sent as well as quantiles of the latency of responses.
|
Package metrics provides an HTTP handler which registers counters for the number of requests received and responses sent as well as quantiles of the latency of responses. |
Package recovery provides an HTTP handler which recovers panics in an underlying handler, logs debug information about the panic, and returns a 500 Internal Server Error to the client.
|
Package recovery provides an HTTP handler which recovers panics in an underlying handler, logs debug information about the panic, and returns a 500 Internal Server Error to the client. |
Package service combines the other various packages in http-handlers to provide an operations-friendly http.Handler for your application.
|
Package service combines the other various packages in http-handlers to provide an operations-friendly http.Handler for your application. |
Click to show internal directories.
Click to hide internal directories.