Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subroutes #125

Closed
alphacentory opened this issue Jan 17, 2016 · 6 comments
Closed

Subroutes #125

alphacentory opened this issue Jan 17, 2016 · 6 comments

Comments

@alphacentory
Copy link

Does httprouter allow for subroutes?

@mathvav
Copy link

mathvav commented Jan 17, 2016

Not by default. However, a framework like Gin (built upon httprouter) does indeed allow this

@alphacentory
Copy link
Author

oh ok and speed difference? I use http router for one project, but for another I want the speed to be there.

@alphacentory
Copy link
Author

Nevermind just benchmarked lol... a lot faster than gorilla for rest.

@mathvav
Copy link

mathvav commented Jan 17, 2016

For Gin? Gin is just another layer on top of httprouter.

Yeah, it is a lot faster.

@julienschmidt
Copy link
Owner

Also take a look at #89
v2 (soon™) will have subrouters (probably just a struct with prefix strings) for convenience. You could also build a wrapper on your own.

@alphacentory
Copy link
Author

Thanks for that @julienschmidt, and btw love this so far.

similark pushed a commit to similarweb/httprouter that referenced this issue May 9, 2023
* Move charts to keda/charts

Signed-off-by: Lucas Santos <[email protected]>

* Update install docs

Signed-off-by: Lucas Santos <[email protected]>

* Change repository name to match charts

Signed-off-by: Lucas Santos <[email protected]>

* Fix spacing

Signed-off-by: Lucas Santos <[email protected]>

* Re add xkcd as example

Signed-off-by: Lucas Santos <[email protected]>

* Add files from julienschmidt#150

Co-authored-by: Aaron Schlesinger <[email protected]>
Signed-off-by: Lucas Santos <[email protected]>

* Update instructions following new chart location

Signed-off-by: Lucas Santos <[email protected]>

* Fix broken link

Signed-off-by: Lucas Santos <[email protected]>

Co-authored-by: Aaron Schlesinger <[email protected]>
Co-authored-by: Aaron Schlesinger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants