Struct sfo_http::http_util::HttpClientBuilder
source · pub struct HttpClientBuilder { /* private fields */ }Implementations§
source§impl HttpClientBuilder
impl HttpClientBuilder
pub fn set_base_url(self, base_url: &str) -> Result<Self>
pub fn add_header( self, name: impl Into<HeaderName>, values: impl ToHeaderValues ) -> Result<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: Option<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 build(self) -> HttpClient
Trait Implementations§
Auto Trait Implementations§
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