Ecosyste.ms: Packages

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

Top 1.4% on proxy.golang.org
Top 0.2% dependent packages on proxy.golang.org
Top 0.3% dependent repos on proxy.golang.org
Top 3.7% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org

proxy.golang.org : github.com/fasthttp/router

Package router 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 handler is registered for this path and method, the router delegates the request to that function. For the methods GET, POST, PUT, PATCH, DELETE and OPTIONS 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 in ctx.UserValue(<key>), consisting each of a key and a value. The slice is passed to the Handle func as a third parameter. To retrieve the value of a parameter,gets by the name of the parameter

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/fasthttp/router
Keywords: fast, fasthttp, go, golang, performance, radix-tree, router, routing, routing-engine
License: BSD-3-Clause
Latest release: 6 months ago
First release: over 7 years ago
Namespace: github.com/fasthttp
Dependent packages: 576
Dependent repositories: 694
Stars: 381 on GitHub
Forks: 42 on GitHub
Docker dependents: 88
Docker downloads: 178,324,204
See more repository details: repos.ecosyste.ms
Last synced: about 4 hours ago

    Loading...
    Readme
    Loading...