pub struct Config {
pub include_date_header: bool,
pub max_body_size: Option<usize>,
pub include_conn_info: bool,
pub include_server_info: bool,
}
Expand description
Server configuration.
Fields§
§include_date_header: bool
Whether if include the Date
header in each request.
max_body_size: Option<usize>
Max body size in bytes.
include_conn_info: bool
Whether if include connection information to the request extensions.
include_server_info: bool
Whether if include the server config to the request extensions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)