pub struct HttpClientBuilder { /* private fields */ }Implementations§
Source§impl HttpClientBuilder
impl HttpClientBuilder
pub fn set_base_url(self, base_url: &str) -> Self
pub fn add_header( self, name: impl Into<HeaderName>, value: impl Into<HeaderValue>, ) -> HttpResult<Self>
pub fn set_http_keep_alive(self, keep_alive: bool) -> Self
pub fn set_tcp_no_delay(self, no_delay: bool) -> Self
pub fn set_timeout(self, timeout: Duration) -> Self
pub fn set_max_connections_per_host( self, max_connections_per_host: usize, ) -> Self
pub fn set_verify_tls(self, verify_tls: bool) -> Self
pub fn set_auto_sys_proxy(self, proxy: bool) -> Self
pub fn add_root_certificate(self, cert: Certificate) -> Self
pub fn tls_built_in_root_certs(self, tls_built_in_root_certs: bool) -> Self
pub fn identity(self, identity: Identity) -> Self
pub fn tls_sni(self, tls_sni: bool) -> Self
pub fn min_tls_version(self, version: Version) -> Self
pub fn max_tls_version(self, version: Version) -> Self
pub fn https_only(self, enabled: bool) -> Self
pub fn resolve(self, domain: &str, addr: SocketAddr) -> Self
pub fn resolve_to_addrs(self, domain: &str, addrs: &[SocketAddr]) -> Self
pub fn dns_resolver<R: Resolve + 'static>(self, resolver: Arc<R>) -> Self
pub fn proxy(self, proxy: Proxy) -> Self
pub fn build(self) -> HttpClient
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpClientBuilder
impl !RefUnwindSafe for HttpClientBuilder
impl Send for HttpClientBuilder
impl Sync for HttpClientBuilder
impl Unpin for HttpClientBuilder
impl !UnwindSafe 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