pub fn build(&mut self) -> Result<Client, Error> {
        let agent = agent::create()?;

        Ok(Client {
            agent: agent,
            default_options: self.default_options.clone(),
            middleware: Arc::new(self.middleware.drain(..).collect()),
        })
    }
/// Build an HTTP client using the configured options.
///
/// If the client fails to initialize, an error will be returned.
Build an HTTP client using the configured options.
If the client fails to initialize, an error will be returned.
Build an HTTP client using the configured options . If the client fails to initialize an error will be returned .
pub fn build(&mut self) -> Result<Client, Error> {
        let agent = agent::create()?;
        Ok(Client {
            agent: agent,
            default_options: self.default_options.clone(),
            middleware: Arc::new(self.middleware.drain(..).collect()),
        })
    }
pub fn build ( & mut self ) -> Result < Client , Error > { let agent = agent :: create ( ) ? ; Ok ( Client { agent : agent , default_options : self . default_options . clone ( ) , middleware : Arc :: new ( self . middleware . drain ( .. ) . collect ( ) ) , } ) }
Build an HTTP client using the configured options.
Build an HTTP client using the configured options .
&mut self
&mut self