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

Top 3.6% on proxy.golang.org
Top 1.3% dependent packages on proxy.golang.org
Top 0.6% dependent repos on proxy.golang.org
Top 9.0% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org

proxy.golang.org : github.com/bouk/httprouter

Package httprouter is a trie based high performance HTTP request router. A trivial example is: The router 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 handles, for all other methods router.Handle can be used. The registered path, against which the router 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 a slice of the Param struct, consisting each of a key and a value. The slice is passed to the Handle func as a third parameter. There are two ways to retrieve the value of a parameter:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/bouk/httprouter
License: BSD-3-Clause
Latest release: over 8 years ago
First release: over 8 years ago
Namespace: github.com/bouk
Dependent packages: 16
Dependent repositories: 106
Stars: 31 on GitHub
Forks: 4 on GitHub
Docker dependents: 8
Docker downloads: 153,724,536
See more repository details: repos.ecosyste.ms
Last synced: 2 months ago

    Loading...
    Readme
    Loading...