httprouter icon indicating copy to clipboard operation
httprouter copied to clipboard

A high performance HTTP request router that scales well

Results 94 httprouter issues
Sort by recently updated
recently updated
newest added

Slightly updated version for issues #208 and #284 based on original code in pr #209 from @halorium

This addresses issue #208 When a path parameter contains url escaped characters (especially "/" as "%2F") it uses the raw path and doesn't automatically unescape the path. This adds a...

Note: This is similar to closed / rejected issue #57. The difference here is that the RouteGroup imposes no request overhead as it's only a proxy to the Router.METHOD() functions...

feature

If I add a route "/*a", the tree should be "{path:""}->{path:""}->{path:"/*a"}". Why not make it just like param form? I feel much confused, I just don't understand why it should...

* Remove the valid variable, instead use hardcoded values * Break the loop when encounter an invalid ':' or '*'

Hi! I need a router that is able to re-register (or remove) a handler. Adding the remove path function looks too complex a task, however, removing [this condition](https://github.com/julienschmidt/httprouter/blob/master/tree.go#L209) seems to...

I'm about to use httprouter in a http api gateway, and use httprouter to match path. i do not need a handle function, so i register paths with an empty...

36 commits to master since v1.3 release. benchmark result: https://github.com/the-benchmarker/web-frameworks

Using alice with httprouter to chain middleware and wrapping params before passing it to the middleware function. ``` func (s *Server) wrap(next http.Handler) httprouter.Handle { return func(w http.ResponseWriter, r *http.Request,...

At the moment, `"/param1a%2fparam1b/tail"` matches route `"head/:param1/:param2/tail"` instead of `":param1/tail"`. There's no way we can have a `'/'` in a URL param.