dont require agent().build()

This commit is contained in:
Martin Algesten
2018-07-01 10:24:42 +02:00
parent 03928a05c5
commit a14e75fcbc
4 changed files with 6 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ include!("unit.rs");
/// can keep a state.
///
/// ```
/// let agent = ureq::agent().build();
/// let agent = ureq::agent();
///
/// let auth = agent
/// .post("/login")
@@ -222,7 +222,7 @@ impl Agent {
/// that `Set-Cookie` in the agent.
///
/// ```
/// let agent = ureq::agent().build();
/// let agent = ureq::agent();
///
/// agent.get("http://www.google.com").call();
///
@@ -239,7 +239,7 @@ impl Agent {
/// Set a cookie in this agent.
///
/// ```
/// let agent = ureq::agent().build();
/// let agent = ureq::agent();
///
/// let cookie = ureq::Cookie::new("name", "value");
/// agent.set_cookie(cookie);