pub struct Http { /* private fields */ }Implementations§
Source§impl HttpConfig
impl HttpConfig
pub fn new() -> HttpConfig
pub fn default_headers(self, headers: HeaderMap) -> HttpConfig
pub fn user_agent(self, user_agent: impl Into<String>) -> HttpConfig
pub fn timeout(self, timeout: u64) -> HttpConfig
pub fn read_timeout(self, read_timeout: u64) -> HttpConfig
pub fn connect_timeout(self, connect_timeout: u64) -> HttpConfig
pub fn pool_idle_timeout(self, pool_idle_timeout: u64) -> HttpConfig
pub fn pool_max_idle_per_host(self, pool_max_idle_per_host: usize) -> HttpConfig
pub fn referer(self, referer: bool) -> HttpConfig
pub fn tcp_nodelay(self, tcp_nodelay: bool) -> HttpConfig
pub fn hickory_dns(self, hickory_dns: bool) -> HttpConfig
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
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 moreSource§impl Debug for HttpConfig
impl Debug for HttpConfig
Source§impl Default for HttpConfig
impl Default for HttpConfig
Source§fn default() -> HttpConfig
fn default() -> HttpConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin for HttpConfig
impl UnwindSafe for HttpConfig
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