pub struct ReqwestHttpClientBuilder { /* private fields */ }Implementations§
Source§impl ReqwestHttpClientBuilder
impl ReqwestHttpClientBuilder
pub fn timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, connect_timeout: Duration) -> Self
Sourcepub fn max_response_bytes(self, max_response_bytes: u64) -> Self
pub fn max_response_bytes(self, max_response_bytes: u64) -> Self
Override the response body ceiling (default 10 MiB). A connector whose provider legitimately answers with larger payloads sets this explicitly and visibly, rather than the port having no limit at all.
pub fn build(self) -> Result<ReqwestHttpClient>
Trait Implementations§
Source§impl Clone for ReqwestHttpClientBuilder
impl Clone for ReqwestHttpClientBuilder
Source§fn clone(&self) -> ReqwestHttpClientBuilder
fn clone(&self) -> ReqwestHttpClientBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReqwestHttpClientBuilder
impl RefUnwindSafe for ReqwestHttpClientBuilder
impl Send for ReqwestHttpClientBuilder
impl Sync for ReqwestHttpClientBuilder
impl Unpin for ReqwestHttpClientBuilder
impl UnsafeUnpin for ReqwestHttpClientBuilder
impl UnwindSafe for ReqwestHttpClientBuilder
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