Skip to content

ValidateRequest example not working in axum #346

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

You must be logged in to vote

axum requires all response bodies to be axum::body::BoxBody. Using type ResponseBody = axum::body::BoxBody; instead should work. You can create a box body with boxed

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by davidpdrsn
Comment options

You must be logged in to vote
1 reply
@davidpdrsn
Comment options

Comment options

You must be logged in to vote
0 replies
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 #345 on March 23, 2023 14:22.