Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Way to upload body from non-static &[u8]? #75
The way I currently understand it,
There's not currently a way to use a borrowed buffer, no. Even if you make a synchoronous call in a single thread, the body is still moved to a (single) background thread to be sent. This is what allows a single client to multiplex a large number of simultaneous requests.
Theoretically, it would be safe to use a borrowed buffer as the request body, as long as the reference is
Generally, it is common in networking to use the
Hope that helps.