Skip to content
Discussion options

You must be logged in to vote

Just to clarify, are you referring to Axum extractors which you would like to use in Qubit handlers?

If so, there isn't any specific support for this. It should be possible to manually run extractors on a request with FromRequestParts in the service builder (see auth example for an idea of how to use the raw underlying request). After this, you'd just store the result in the Qubit context that's passed to handlers.

If you're talking about the Ctx parameter passed to Qubit handlers, then only one of these is possible. Qubit's implantation is much simpler than Axum's, as Qubit always assumes that the first parameter is a ctx parameter, and enforces that it implements FromRequestExtensions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by polina4096
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants