Update client.rs
This commit is contained in:
@@ -32,18 +32,19 @@ static DEFAULT_USER_AGENT: &'static str = concat!(env!("CARGO_PKG_NAME"), "/", e
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// extern crate reqwest;
|
||||
/// # extern crate reqwest;
|
||||
/// #
|
||||
/// # use reqwest::{Error, Client};
|
||||
/// #
|
||||
/// # fn run() -> Result<(), Error> {
|
||||
/// let client = Client::new()?;
|
||||
/// client.get("http://httpbin.org/").send()?;
|
||||
/// # Ok(())
|
||||
/// # }
|
||||
///
|
||||
/// use reqwest::{Error, Client};
|
||||
///
|
||||
/// fn run() -> Result<(), Error> {
|
||||
/// Client::new()?.get("http://httpbin.org/").send()?;
|
||||
/// Ok(())
|
||||
/// }
|
||||
///
|
||||
/// fn main() {
|
||||
/// run().unwrap();
|
||||
/// }
|
||||
/// # fn main() {
|
||||
/// # run().unwrap();
|
||||
/// # }
|
||||
/// ```
|
||||
#[derive(Clone)]
|
||||
pub struct Client {
|
||||
|
||||
Reference in New Issue
Block a user