pub struct HttpLimits {
pub max_body_bytes: usize,
pub timeout: Duration,
pub max_redirects: usize,
}Expand description
Limits for one request, redirects included. The default is 2 MiB of body, 15 seconds in total and 5 redirects.
Fields§
§max_body_bytes: usize§timeout: Duration§max_redirects: usizeTrait Implementations§
Source§impl Clone for HttpLimits
impl Clone for HttpLimits
impl Copy for HttpLimits
Source§impl Debug for HttpLimits
impl Debug for HttpLimits
Source§impl Default for HttpLimits
impl Default for HttpLimits
impl Eq for HttpLimits
Source§impl PartialEq for HttpLimits
impl PartialEq for HttpLimits
impl StructuralPartialEq for HttpLimits
Auto Trait Implementations§
impl Forget for HttpLimits
impl Freeze for HttpLimits
impl Move for HttpLimits
impl RefUnwindSafe for HttpLimits
impl Send for HttpLimits
impl Sync for HttpLimits
impl Unpin for HttpLimits
impl UnsafeUnpin for HttpLimits
impl UnwindSafe for HttpLimits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.