Make UrlParams public
Author: DiggseyCreated Nov 6, 2024Updated Sep 7, 2026
- I have looked for existing issues (including closed) about this
Feature Request
Make UrlParams public.
Motivation
I want to be able to nest a router under a dynamic path (/:foo) and use a middleware to extract the value of :foo and do something with it. The middleware should then be able to remove foo from the UrlParams so that when it calls Next, the nested router only sees path parameters that it understands.
Proposal
Make UrlParams public.
Alternatives
Provide a hygenic way to nest a router under a dynamic path.
Source: tokio-rs/axum