Skip to content

Commit bfd31be

Browse files
authored
docs: Improve RequestBuilder::multipart's documentation (#2388)
Making it clear that Content-Type is set will help prevent callers from building maleformed requests where that field is present multiple times.
1 parent 8c7f338 commit bfd31be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/async_impl/request.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ impl RequestBuilder {
309309
/// # Ok(())
310310
/// # }
311311
/// ```
312+
///
313+
/// In additional the request's body, the Content-Type and Content-Length fields are
314+
/// appropriately set.
312315
#[cfg(feature = "multipart")]
313316
#[cfg_attr(docsrs, doc(cfg(feature = "multipart")))]
314317
pub fn multipart(self, mut multipart: multipart::Form) -> RequestBuilder {

0 commit comments

Comments
 (0)