-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add file function to async_impl::multipart #2106
base: master
Are you sure you want to change the base?
Conversation
@@ -104,7 +104,7 @@ impl Form { | |||
/// | |||
/// ```no_run | |||
/// # fn run() -> std::io::Result<()> { | |||
/// let files = reqwest::blocking::multipart::Form::new() | |||
/// let form = reqwest::blocking::multipart::Form::new() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable names were different from the entities and have been corrected.
} | ||
}); | ||
|
||
let url = format!("http://{}/multipart/3", server.addr()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know what these numbers mean.
Please let me know if there is something appropriate as I just incremented it.
Related to #646
Add file function to
async_impl::multipart::{Form, Part}
.Notes
Since
From<File> for Body
was added in #1360, I decided to use thestream
function that uses it internally.This comment says
the backend did not support chunked requests
, butTransfer-Encoding: chunked
should be accepted forHTTP/1.1
.