Skip to content

How to get some useful datas when returning Result in async fn. #2097

Discussion options

You must be logged in to vote

Yep that's the only way. IntoResponse intentionally doesn't get access to the request data as that makes calling the .into_response() method inside handlers hard. I actually spoke about this during a talk I gave recently https://youtu.be/w1atdqNsA80?t=2013

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RecordingTheSmile
Comment options

@davidpdrsn
Comment options

@RecordingTheSmile
Comment options

Answer selected by RecordingTheSmile
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