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

@@ -179,7 +179,11 @@ pub fn agent() -> Agent {
/// Make a request setting the HTTP method via a string.
///
/// ```
/// ureq::request("GET", "http://example.com").call().unwrap();
/// # fn main() -> Result<(), ureq::Error> {
/// # ureq::is_test(true);
/// ureq::request("GET", "http://example.com").call()?;
/// # Ok(())
/// # }
/// ```
pub fn request(method: &str, path: &str) -> Request {
agent().request(method, path)