pub struct DecodeOptions {
pub max_start_line_size: usize,
pub max_header_size: usize,
}Expand description
Options for request/response decoders.
Fields§
§max_start_line_size: usizeThe maximum number of bytes allowed for a start-line part.
max_header_size: usizeThe maximum number of bytes allowed for a header part.
Implementations§
Source§impl DecodeOptions
impl DecodeOptions
Sourcepub const DEFAULT_MAX_START_LINE_SIZE: usize = 65_535usize
pub const DEFAULT_MAX_START_LINE_SIZE: usize = 65_535usize
The default value of max_start_line_size field.
Sourcepub const DEFAULT_MAX_HEADER_SIZE: usize = 65_535usize
pub const DEFAULT_MAX_HEADER_SIZE: usize = 65_535usize
The default value of max_header_size field.
Trait Implementations§
Source§impl Clone for DecodeOptions
impl Clone for DecodeOptions
Source§fn clone(&self) -> DecodeOptions
fn clone(&self) -> DecodeOptions
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 DecodeOptions
impl Debug for DecodeOptions
Auto Trait Implementations§
impl Freeze for DecodeOptions
impl RefUnwindSafe for DecodeOptions
impl Send for DecodeOptions
impl Sync for DecodeOptions
impl Unpin for DecodeOptions
impl UnwindSafe for DecodeOptions
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