send_str to send_string

This commit is contained in:
Martin Algesten
2018-06-22 10:13:31 +02:00
parent 293733643c
commit 5f975270bf
5 changed files with 9 additions and 10 deletions

View File

@@ -14,7 +14,7 @@
//! These top level http method functions create a [Request](struct.Request.html) instance
//! which follows a build pattern. The builders are finished using
//! [`.call()`](struct.Request.html#method.call),
//! [`.send_str()`](struct.Request.html#method.send_str) or
//! [`.send_string()`](struct.Request.html#method.send_string) or
//! [`.send_json()`](struct.Request.html#method.send_json).
//!
//! # Agents
@@ -25,7 +25,7 @@
//! # Content-Length
//!
//! The library will set the content length on the request when using
//! [`.send_str()`](struct.Request.html#method.send_str) or
//! [`.send_string()`](struct.Request.html#method.send_string) or
//! [`.send_json()`](struct.Request.html#method.send_json). In other cases the user
//! can optionally `request.set("Content-Length", 1234)`.
//!
@@ -42,7 +42,7 @@
//! ```
//! let resp = ureq::post("http://my-server.com/ingest")
//! .set("Transfer-Encoding", "chunked")
//! .send_str("Hello world");
//! .send_string("Hello world");
//! ```
extern crate ascii;