An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

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:

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20161206215253-723534742ba3
over 9 years ago
Versions
2
Dependent Packages
10
Dependent Repos
31
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/carbocation/interpose
spec
License MIT
Namespace github.com/carbocation
First Release about 11 years ago
Last Synced 17 days ago
Repository
Stars 297 on GitHub
Forks 17 on GitHub
Docker Dependents 2
Docker Downloads 21
Rankings on proxy.golang.org
Overall Top 2.6%
Dependent packages Top 1.7%
Dependent repos Top 1.0%
Forks Top 5.3%
Docker downloads Top 2.1%