Struct kern::http::server::HttpSettings
source · pub struct HttpSettings {
pub max_header_size: usize,
pub max_body_size: usize,
pub header_buffer: usize,
pub body_buffer: usize,
pub header_read_attempts: usize,
pub body_read_attempts: usize,
pub read_timeout: Option<Duration>,
pub write_timeout: Option<Duration>,
}
Expand description
HTTP server settings
Fields§
§max_header_size: usize
§max_body_size: usize
§header_buffer: usize
§body_buffer: usize
§header_read_attempts: usize
§body_read_attempts: usize
§read_timeout: Option<Duration>
§write_timeout: Option<Duration>
Implementations§
source§impl HttpSettings
impl HttpSettings
Trait Implementations§
source§impl Clone for HttpSettings
impl Clone for HttpSettings
source§fn clone(&self) -> HttpSettings
fn clone(&self) -> HttpSettings
Returns a copy 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 HttpSettings
impl Debug for HttpSettings
Auto Trait Implementations§
impl RefUnwindSafe for HttpSettings
impl Send for HttpSettings
impl Sync for HttpSettings
impl Unpin for HttpSettings
impl UnwindSafe for HttpSettings
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