pub struct HttpClientBuilder { /* private fields */ }Implementations§
Source§impl HttpClientBuilder
impl HttpClientBuilder
pub fn new() -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_connect_timeout(self, connect_timeout: Duration) -> Self
pub fn with_headers(self, headers: HeaderMap) -> Self
pub fn with_proxy(self, proxy: Proxy) -> Self
pub fn with_pool_idle_timeout(self, pool_idle_timeout: Duration) -> Self
pub fn with_read_timeout(self, read_timeout: Duration) -> Self
pub fn with_max_idle_per_host(self, max_idle_per_host: usize) -> Self
pub fn build(self) -> Result<HttpClient, Error>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpClientBuilder
impl !UnwindSafe for HttpClientBuilder
impl Freeze for HttpClientBuilder
impl Send for HttpClientBuilder
impl Sync for HttpClientBuilder
impl Unpin for HttpClientBuilder
impl UnsafeUnpin for HttpClientBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more