Top 1.7% dependent packages on proxy.golang.org
Top 1.0% dependent repos on proxy.golang.org
Top 5.3% forks on proxy.golang.org
Top 2.1% docker downloads on proxy.golang.org
proxy.golang.org : github.com/carbocation/interpose
Interpose is a minimalist Golang middleware that uses only `http.Handler` and `func(http.Handler)http.Handler`. Interpose takes advantage of closures to create a stack of native net/http middleware. Unlike other middleware libraries which create their own net/http-like signatures, interpose uses literal net/http signatures, thus minimizing package lock-in and maximizing inter-compatibility. Middleware is called in nested FIFO fashion, which means that the first middleware to be added will be the first middleware to be called. Because the middleware is nested, it actually means that the first middleware to be added gets the opportunity to make the first and the last calls in the stack. For example, if there are 3 middlewares added in order (0, 1, 2), the calls look like so:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/carbocation/interpose
License: MIT
Latest release: over 8 years ago
First release: about 10 years ago
Namespace: github.com/carbocation
Dependent packages: 10
Dependent repositories: 31
Stars: 297 on GitHub
Forks: 17 on GitHub
Docker dependents: 2
Docker downloads: 21
See more repository details: repos.ecosyste.ms
Last synced: 19 days ago