httptreemux icon indicating copy to clipboard operation
httptreemux copied to clipboard

High-speed, flexible tree-based HTTP router for Go.

Results 11 httptreemux issues
Sort by recently updated
recently updated
newest added

This pr adds support for regexp routes. The discussion is here: https://github.com/dimfeld/httptreemux/issues/85

Just a question, does regexp routes will be supported? Or if it's welcomed to accept PR to support regexp? Sometimes it's quite useful doing some migration work.

Since we can now add routes at runtime (using the mutex), I think it would be appropriate to provide a function to remove routes as well. Please excuse me if...

In this PR we expose the LookupResults params field to be accessible to external code. This is to ultimately allow us to instrument `httptreemux` to add support for Datatdog APM....

We would like to be able to instrument httptreemux for observability with Datadog, similar to what was done for [julienschmidt/httprouter](https://github.com/julienschmidt/httprouter) in [DataDog/dd-trace-go/contrib/julienschmidt/httprouter/httprouter.go](https://github.com/DataDog/dd-trace-go/blob/main/contrib/julienschmidt/httprouter/httprouter.go). In short, in order to build the Datadog...

👋 hello! we often see panics coming from our router when we get hit by people vuln scanning our app. we use lookupFunc to serve our frontend if no backend...

curently there is no way to bind a handle to all methods. `TreMux.Handle` require me to specify the method name.

url :`/files/index.html` and `/files/` not handled. /files/ 404 /files/index.html redirected by `fs`. @dimfeld How can we handle `/files/`? ``` contextMux = app.TreeMux.UsingContext() contextMux.GET("/files/*", http.FileServer(Http.Dir(uploadPath))) ``` _Originally posted by @pedia in...

There is a vulnerability in Go url parsing. More on that here: https://www.oxeye.io/blog/golang-parameter-smuggling-attack In a nutshell, the method `Query()` ignores the error produced by another function when finding a semicolon...