Skip to content

Handler not implemented for axum_extra::handler::Or #2580

Closed Answered by davidpdrsn
Natureshadow asked this question in Q&A
Discussion options

You must be logged in to vote

Only the last handler in a chain of ors can consume the request body. Seems like query_post_handler consumes the request in DirectOrForm<QueryParams>. It can't do that to be used with or. axum only allows consuming the body once.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Natureshadow
Comment options

@davidpdrsn
Comment options

Answer selected by Natureshadow
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
Converted from issue

This discussion was converted from issue #2578 on February 08, 2024 16:53.