Any #rustlang actix-web 1.0.* developers out there?? why can't I just get access to the request body in a middleware? This seems like such a basic thing that is made overly complex or impossible.
-
-
Replying to @Ang3lFir3
You can use take_payload/set_payload methods on ServiceRequest. Just remember request’s body is a async stream of bytes.
1 reply 0 retweets 1 like -
Replying to @fafhrd91
So if I consume them, do stuff and then put them back via set_payload ... What are the concerns I need to be aware of in regards to it being an async stream of bytes ?
1 reply 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.