Skip to content

Interact with the raw body from the request? #1016

Answered by chrislearn
TaQuanMinhLong asked this question in Q&A
Discussion options

You must be logged in to vote

The Body itself implements the Stream trait. https://docs.rs/salvo_core/latest/salvo_core/http/body/enum.ReqBody.html#impl-Stream-for-ReqBody
If you have never accessed methods such as form_data or file, the FormData object will not be created and the related uploaded files will not be written to temporary files.

Replies: 1 comment 1 reply

Comment options

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

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