Add minimal, feature gated methods for accessing internals of path_router
#3139
Replies: 3 comments 6 replies
-
I haven't been able to fully flesh out the idea yet, but I was thinking of having a way to expose a list of all routes together with some kind of This could be used to build something like |
Beta Was this translation helpful? Give feedback.
-
This isn't really what I meant. Prior art (what do other frameworks do) is a relevant consideration, but the more important question to be answered is that of the use case(s).
is notably not a concrete use case. What other libraries are you thinking of here? |
Beta Was this translation helpful? Give feedback.
-
I'm the author of Apitally and this feature would allow a client library for Axum to be implemented. |
Beta Was this translation helpful? Give feedback.
-
Prior to this discussion, I had opened #3127. There has also been #3086 and #2515. David and Jonas have expressed concern over the scope of a feature like this expanding to undefinable bounds.
The goal is to get a similar change made, as done in #3127 or something else widely agreeable and well defined in scope. We do not need Axum to reinvent the wheel on every possible feature in every other framework. However, we do need additional, minimal exposure to some internals, to allow the creation of other libraries, in a similar capability that which we have to create middleware, extensions, etc.
In other web frameworks, the following abilities exist:
_router
If anyone else is looking for similar feature, please share a use case and a proposal for what methods or access level would be useful.
Beta Was this translation helpful? Give feedback.
All reactions