pub struct Configuration {
pub address: SocketAddr,
pub maxContent: usize,
pub maxHeaderEntries: usize,
pub maxHeaderLength: usize,
pub maxPathLength: usize,
pub maxQueryLength: usize,
}Expand description
Configuration of the HTTP Server.
Fields§
§address: SocketAddrAddress, on which the Server should listen to.
maxContent: usizeMaximum Bytes of Request Content. Prevents DOS by Allocation a large Buffer (Header ›Content-Length‹ could contain any decimal value) without ever filling it.
maxHeaderEntries: usizeMaximum Numbers of Headers. Prevents Slow Lorris Attacks: Client might slowly send Header by Header for ever, but because neither the Connection times out nor the Request every ends, the Server keeps reading the Stream.
maxHeaderLength: usizeMaximum Length of a Header.
maxPathLength: usizeMaximum Length of Path. Prevents Slow Lorris Attacks.
maxQueryLength: usizeMaximum Length of Query String. Prevents Slow Lorris Attacks.
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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