ibraheemdev / matchit

A high performance, zero-copy URL router.
https://docs.rs/matchit
MIT License
366 stars 37 forks source link

Normalize Route Parameters #37

Closed ibraheemdev closed 1 year ago

ibraheemdev commented 1 year ago

Resolves https://github.com/ibraheemdev/matchit/issues/13.

Route parameters are now normalized when inserted, and a remapping of parameter names is stored at the leaf node holding the value. This way we know what parameter names are expected after a successful match, and can apply the remappings.