Add some more updates.

This commit is contained in:
Jacob Hoffman-Andrews
2020-11-14 16:49:44 -08:00
committed by Martin Algesten
parent daa63d3bc6
commit 26145810bf
2 changed files with 6 additions and 8 deletions

View File

@@ -60,16 +60,10 @@ impl Request {
/// Executes the request and blocks the caller until done.
///
/// Use `.timeout_connect()` and `.timeout_read()` to avoid blocking forever.
///
/// ```
/// use std::time::Duration;
/// # fn main() -> Result<(), ureq::Error> {
/// # ureq::is_test(true);
/// let resp = ureq::builder()
/// .timeout_connect(Duration::from_secs(10))
/// .build()
/// .get("http://example.com/")
/// let resp = ureq::get("http://example.com/")
/// .call()?;
/// # Ok(())
/// # }