pub struct HttpConfig { /* private fields */ }
Expand description
Configuration options for the HTTP Client
Implementations§
Source§impl HttpConfig
impl HttpConfig
Sourcepub fn new() -> HttpConfig
pub fn new() -> HttpConfig
Create a new HttpConfig
Sourcepub fn read_buf_size(&mut self, sz: usize)
pub fn read_buf_size(&mut self, sz: usize)
Sets the size of the read buffer for inbound data A larger buffer size might result in better performance by requiring fewer copies out of the socket buffer.
Trait Implementations§
Source§impl Default for HttpConfig
impl Default for HttpConfig
Source§fn default() -> HttpConfig
fn default() -> HttpConfig
Create a new HttpConfig. Same as HttpConfig::new().
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin 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