httprouter 2.0 status and Routing priority over wildcards

Author: solarfly73Created Jun 27, 2017Updated May 20, 2025

Hi Julien,

I read the other issues that point to a 2.0 version where you intend to support routing priority such that more specific routes will take precedence over wildcards. Is this code in progress? Any way I can help out? If not, I have been working on the following:

  1. If a node has two or more children, and one is a wildcard, it receives the worst priority.
  2. Only one wildcard is allowed per node within the group of children.

Can you share your thoughts on the strategy you feel is necessary to implement this and keep the router fast?

Source: julienschmidt/httprouter