Package Usage: go: github.com/rs/xhandler
Package xhandler provides a bridge between http.Handler and net/context.
xhandler enforces net/context in your handlers without sacrificing
compatibility with existing http.Handlers nor imposing a specific router.
Thanks to net/context deadline management, xhandler is able to enforce
a per request deadline and will cancel the context in when the client close
the connection unexpectedly.
You may create net/context aware middlewares pretty much the same way as
you would with http.Handler.
1 version
Latest release: about 8 years ago
879 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/rs/xhandler