-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add mixed param and non-param paths (port of httprouter#329) #2663
Conversation
d58e217
to
6ca8802
Compare
6ca8802
to
0481657
Compare
0481657
to
89f4ae2
Compare
89f4ae2
to
159a0c0
Compare
Codecov Report
@@ Coverage Diff @@
## master #2663 +/- ##
=======================================
Coverage 98.64% 98.64%
=======================================
Files 41 41
Lines 1989 1991 +2
=======================================
+ Hits 1962 1964 +2
Misses 15 15
Partials 12 12
Continue to review full report at Codecov.
|
we also should have benchmark test result |
@thinkerou do you want me to run those benchmarks or is that something you or another maintainer would do? |
@rw-access Yes, please fork the repo |
5134779
to
32b2982
Compare
|
@rw-access Thanks for your benchmark report. I make a new report using
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
I tests these two routers with some requests: |
ah, thanks @Tevic. I think it has to do with node.indices. I have a guess and will take a look and add some tests |
This ports a PR I made to httprouter, julienschmidt/httprouter#329.
It adds the ability to have route schemas like
/users/:name
and/users/groups
without running into conflicts.From julienschmidt/httprouter#329: