Skip to content

Signature of the on_response closure #431

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

You must be logged in to vote

The type of the response body is dictated by the service, not the middleware. Looks like you’re using axum which uses that response body type.

You can just use the type that makes it compile. axum provides a type alias at axum::body::BoxBody

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zrll12
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 #430 on October 29, 2023 23:04.