pub struct ListenerConfig {
pub request_timeout: Duration,
pub max_body_bytes: usize,
}Expand description
Configuration for an HttpListener.
Fields§
§request_timeout: DurationPer-request timeout applied at the HTTP layer (wraps the actor ask). Default: 30 seconds.
max_body_bytes: usizeMaximum accepted request body size in bytes. Default: 4 MiB.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListenerConfig
impl RefUnwindSafe for ListenerConfig
impl Send for ListenerConfig
impl Sync for ListenerConfig
impl Unpin for ListenerConfig
impl UnsafeUnpin for ListenerConfig
impl UnwindSafe for ListenerConfig
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