pub struct HttpClientConfig<'a> {
pub proxy: Option<&'a ProxyConfig>,
pub timeout: Option<Duration>,
pub user_agent: Option<String>,
pub default_headers: Option<HeaderMap>,
pub http2_adaptive_window: bool,
}Expand description
Configuration for building an HTTP client.
Fieldsยง
ยงproxy: Option<&'a ProxyConfig>ยงtimeout: Option<Duration>ยงuser_agent: Option<String>ยงdefault_headers: Option<HeaderMap>ยงhttp2_adaptive_window: boolTrait Implementationsยง
Sourceยงimpl<'a> Clone for HttpClientConfig<'a>
impl<'a> Clone for HttpClientConfig<'a>
Sourceยงfn clone(&self) -> HttpClientConfig<'a>
fn clone(&self) -> HttpClientConfig<'a>
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 moreSourceยงimpl<'a> Debug for HttpClientConfig<'a>
impl<'a> Debug for HttpClientConfig<'a>
Sourceยงimpl<'a> Default for HttpClientConfig<'a>
impl<'a> Default for HttpClientConfig<'a>
Sourceยงfn default() -> HttpClientConfig<'a>
fn default() -> HttpClientConfig<'a>
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl<'a> Freeze for HttpClientConfig<'a>
impl<'a> RefUnwindSafe for HttpClientConfig<'a>
impl<'a> Send for HttpClientConfig<'a>
impl<'a> Sync for HttpClientConfig<'a>
impl<'a> Unpin for HttpClientConfig<'a>
impl<'a> UnsafeUnpin for HttpClientConfig<'a>
impl<'a> UnwindSafe for HttpClientConfig<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Sourceยงfn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Sourceยงfn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Sourceยงfn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Anyโs vtable from &Traitโs.Sourceยงfn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Anyโs vtable from &mut Traitโs.