pub struct ClientBuilder { /* private fields */ }Expand description
Builder for HTTP client configuration
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn with_base_url(self, base_url: &str) -> Self
pub fn with_base_url(self, base_url: &str) -> Self
Sourcepub fn with_interceptor(self, interceptor: Box<dyn HttpInterceptor>) -> Self
pub fn with_interceptor(self, interceptor: Box<dyn HttpInterceptor>) -> Self
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sourcepub fn with_read_timeout(self, read_timeout: Duration) -> Self
pub fn with_read_timeout(self, read_timeout: Duration) -> Self
Sourcepub fn with_connect_timeout(self, connect_timeout: Duration) -> Self
pub fn with_connect_timeout(self, connect_timeout: Duration) -> Self
Sourcepub fn with_pool_idle_timeout(self, pool_idle_timeout: Duration) -> Self
pub fn with_pool_idle_timeout(self, pool_idle_timeout: Duration) -> Self
Sourcepub fn with_headers(self, headers: HeaderMap) -> Self
pub fn with_headers(self, headers: HeaderMap) -> Self
Sourcepub fn with_common_interceptor(self) -> Self
pub fn with_common_interceptor(self) -> Self
Sourcepub fn with_pool_max_idle_per_host(self, pool_max_idle_per_host: usize) -> Self
pub fn with_pool_max_idle_per_host(self, pool_max_idle_per_host: usize) -> Self
Sourcepub fn with_dns_overrides(
self,
dns_overrides: HashMap<String, Vec<SocketAddr>>,
) -> Self
pub fn with_dns_overrides( self, dns_overrides: HashMap<String, Vec<SocketAddr>>, ) -> Self
Auto Trait Implementations§
impl Freeze for ClientBuilder
impl !RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl !UnwindSafe for ClientBuilder
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