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>, ) -> BuckyResult<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§
Source§impl Default for HttpClientBuilder
impl Default for HttpClientBuilder
Source§fn default() -> HttpClientBuilder
fn default() -> HttpClientBuilder
Returns the “default value” for a type. Read more
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more