Ecosyste.ms: Packages

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

Top 4.4% on proxy.golang.org
Top 3.4% dependent packages on proxy.golang.org
Top 3.5% dependent repos on proxy.golang.org
Top 6.1% forks on proxy.golang.org

proxy.golang.org : github.com/rs/xmux

Package xmux is a net/context aware, tree based high performance HTTP request multiplexer forked from httprouter. A trivial example is: The muxer matches incoming requests by the request method and the path. If a handle is registered for this path and method, the router delegates the request to that function. For the methods GET, POST, PUT, PATCH and DELETE shortcut functions exist to register handlers, for all other methods mux.Handle can be used. The registered path, against which the muxer matches incoming requests, can contain two types of parameters: Named parameters are dynamic path segments. They match anything until the next '/' or the path end: Catch-all parameters match anything until the path end, including the directory index (the '/' before the catch-all). Since they match anything until the end, catch-all parameters must always be the final path element. The value of parameters is saved as aParams type saved into the context. Parameters can be retrieved by name using xhandler.Param(ctx, name) method:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/rs/xmux
License: BSD-3-Clause
Latest release: almost 7 years ago
First release: almost 7 years ago
Namespace: github.com/rs
Dependent packages: 3
Dependent repositories: 2
Stars: 95 on GitHub
Forks: 11 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 4 days ago

    Loading...
    Readme
    Loading...