proxy.golang.org : github.com/daaku/ctxmux
Package ctxmux provides an opinionated mux. It builds on the context library and combines it with the httprouter library known for it's performance. The equivalent of the ServeHTTP in ctxmux is: It provides a hook to control context creation when a request arrives. Additionally an error can be returned which is passed thru to the error handler. The error handler is responsible for sending a response and possibly logging it as necessary. Similarly panics are also handled and passed to the panic handler.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/daaku/ctxmux
License: BSD-3-Clause
Latest release: about 10 years ago
First release: about 10 years ago
Namespace: github.com/daaku
Last synced: 17 days ago