Closed freehaha closed 10 years ago
Looks like that's what we have to fix.
The original design does not consider about re-insert the same paths with different request method. but you may insert one path with multiple request method.
I think we need to handle this kind of usage. :)
ah, apparently I was using some ancient version before 03b5d10. My problem is fixed after that commit. Thanks anyway for the reply.
great. :) then I close this issue.
Hi,
Thanks for the awesome library. However, I was implementing a Go http mux based on r3 and found some strange behavior:
I found that inserting routes with different method but the same path seems to work only once. Is this the intended behavior?
If it is, then router implementations based on r3 will have to roll out their own method dispatchers on the leaf nodes and insert catch-it-all (METHOD_GET|METHOD_POST|METHOD ....) routes on every paths registered because there are no API to remove/replace existing routes. This makes routes kind of meaningless compared to paths, IMO.
Example behavior here: https://gist.github.com/freehaha/514038ec448667fc22e8