Struct httpcodec::DecodeOptions
[−]
[src]
pub struct DecodeOptions { pub max_start_line_size: usize, pub max_header_size: usize, }
Options for request/response decoders.
Fields
max_start_line_size: usize
The maximum number of bytes allowed for a start-line part.
max_header_size: usize
The maximum number of bytes allowed for a header part.
Methods
impl DecodeOptions
[src]
pub const DEFAULT_MAX_START_LINE_SIZE: usize
DEFAULT_MAX_START_LINE_SIZE: usize = 65535
The default value of max_start_line_size
field.
pub const DEFAULT_MAX_HEADER_SIZE: usize
DEFAULT_MAX_HEADER_SIZE: usize = 65535
The default value of max_header_size
field.
Trait Implementations
impl Debug for DecodeOptions
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for DecodeOptions
[src]
fn clone(&self) -> DecodeOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more