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.
Ecosystem
proxy.golang.org
proxy.golang.org
Latest Release
over 8 years ago
v0.0.0-20170707052532-1eb70cf1520d
over 8 years ago
Versions
1
1
Dependent Packages
879
879
Dependent Repos
3,397
3,397
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/rs/xhandler
spec |
| License | MIT |
| Namespace | github.com/rs |
| First Release | over 8 years ago |
| Last Synced | 21 days ago |
Rankings on proxy.golang.org
Overall
Top 2.1%
Dependent packages
Top 0.1%
Dependent repos
Top 0.1%
Forks
Top 6.0%
Docker downloads
Top 0.7%