pub fn build(self) -> Agent {
        Agent {
            config: Arc::new(self.config),
            state: Arc::new(AgentState {
                pool: ConnectionPool::new_with_limits(
                    self.max_idle_connections,
                    self.max_idle_connections_per_host,
                ),
                #[cfg(feature = "cookies")]
                cookie_tin: CookieTin::new(self.cookie_store.unwrap_or_else(CookieStore::default)),
                resolver: self.resolver,
            }),
        }
    }
/// Create a new agent.
// Note: This could take &self as the first argument, allowing one
// AgentBuilder to be used multiple times, except CookieStore does
// not implement clone, so we have to give ownership to the newly
// built Agent.
Create a new agent.
Note: This could take &self as the first argument, allowing one
AgentBuilder to be used multiple times, except CookieStore does
not implement clone, so we have to give ownership to the newly
built Agent.
Create a new agent . Note : This could take &self as the first argument allowing one AgentBuilder to be used multiple times except CookieStore does not implement clone so we have to give ownership to the newly built Agent .
pub fn build(self) -> Agent {
        Agent {
            config: Arc::new(self.config),
            state: Arc::new(AgentState {
                pool: ConnectionPool::new_with_limits(
                    self.max_idle_connections,
                    self.max_idle_connections_per_host,
                ),
                #[cfg(feature = "cookies")]
                cookie_tin: CookieTin::new(self.cookie_store.unwrap_or_else(CookieStore::default)),
                resolver: self.resolver,
            }),
        }
    }
pub fn build ( self ) -> Agent { Agent { config : Arc :: new ( self . config ) , state : Arc :: new ( AgentState { pool : ConnectionPool :: new_with_limits ( self . max_idle_connections , self . max_idle_connections_per_host , ) , # [ cfg ( feature " " ) ] cookie_tin : CookieTin :: new ( self . cookie_store . unwrap_or_else ( CookieStore :: default ) ) , resolver : self . resolver , } ) , } }
Create a new agent.
Create a new agent .
self