Add some more updates.
This commit is contained in:
committed by
Martin Algesten
parent
daa63d3bc6
commit
26145810bf
@@ -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(())
|
||||
/// # }
|
||||
|
||||
Reference in New Issue
Block a user