pub struct HttpClientBuilder { /* private fields */ }Implementations§
Source§impl HttpClientBuilder
impl HttpClientBuilder
pub fn timeout(self, timeout: Duration) -> Self
pub fn reqwest_client(self, client: Client) -> Self
pub fn default_header(self, name: &str, value: &str) -> Result<Self, Error>
pub fn request_id_header_name(self, name: &str) -> Result<Self, Error>
pub fn retry_config(self, retry_config: RetryConfig) -> Self
pub fn observer(self, observer: Arc<dyn TransportObserver>) -> Self
pub fn concurrency_limit(self, concurrency_limit: ConcurrencyLimit) -> Self
pub fn build(self) -> Result<HttpClient, Error>
Trait Implementations§
Source§impl Clone for HttpClientBuilder
impl Clone for HttpClientBuilder
Source§fn clone(&self) -> HttpClientBuilder
fn clone(&self) -> HttpClientBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for HttpClientBuilder
impl !RefUnwindSafe for HttpClientBuilder
impl Send for HttpClientBuilder
impl Sync for HttpClientBuilder
impl Unpin for HttpClientBuilder
impl UnsafeUnpin 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