An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/jacoblai/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:
2 versions
Latest release: almost 4 years ago
1 dependent package

View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/jacoblai/httprouter

View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/jacoblai%2Fhttprouter

Dependent Repos 1

jacoblai/tinygm
no code

Size: 21.5 KB - Last synced: 11 months ago - Pushed: over 3 years ago

jacoblai/kk47

Size: 9.77 KB - Last synced: about 1 year ago - Pushed: about 2 years ago