pub struct HttpConfig {
pub connect_timeout_ms: u64,
pub response_timeout_ms: u64,
pub max_connections: usize,
pub max_body_size: usize,
pub max_request_body: usize,
pub allow_private_ips: bool,
}Fields§
§connect_timeout_ms: u64§response_timeout_ms: u64§max_connections: usize§max_body_size: usize§max_request_body: usize§allow_private_ips: boolImplementations§
Source§impl HttpConfig
impl HttpConfig
pub fn with_connect_timeout_ms(self, ms: u64) -> Self
pub fn with_response_timeout_ms(self, ms: u64) -> Self
pub fn with_max_connections(self, n: usize) -> Self
pub fn with_max_body_size(self, n: usize) -> Self
pub fn with_max_request_body(self, n: usize) -> Self
pub fn with_allow_private_ips(self, allow: bool) -> Self
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§impl PartialEq for HttpConfig
impl PartialEq for HttpConfig
impl StructuralPartialEq for HttpConfig
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