reqwest
reqwest copied to clipboard
Add file function to async_impl::multipart
Related to https://github.com/seanmonstar/reqwest/issues/646
Add file function to async_impl::multipart::{Form, Part}
.
Notes
Since From<File> for Body
was added in https://github.com/seanmonstar/reqwest/pull/1360, I decided to use the stream
function that uses it internally.
This comment says the backend did not support chunked requests
, but Transfer-Encoding: chunked
should be accepted for HTTP/1.1
.