This commit is contained in:
Martin Algesten
2018-06-16 12:07:21 +02:00
parent 773c82b4c6
commit 0d9d5d3096
2 changed files with 25 additions and 0 deletions

View File

@@ -171,6 +171,8 @@ impl Request {
/// Send data as a string.
///
/// The `Content-Length` header is implicitly set to the length of the serialized value.
///
/// ```
/// let r = ureq::post("/my_page")
/// .content_type("text/plain")
@@ -187,6 +189,7 @@ impl Request {
/// Send data from a reader.
///
/// The `Content-Length` header is not set because we can't know the length of the reader.
///
///
pub fn send<R>(&mut self, reader: R) -> Response