pub struct ResponseHeaderDecoderOptions { /* private fields */ }
Expand description
Response header decoder options.
Implementations§
Source§impl ResponseHeaderDecoderOptions
impl ResponseHeaderDecoderOptions
Sourcepub const fn new() -> ResponseHeaderDecoderOptions
pub const fn new() -> ResponseHeaderDecoderOptions
Create new response header decoder options.
By default, only CRLF line endings are accepted, the maximum line length is 4096 bytes, the maximum header field length is 4096 bytes, and the maximum number of header fields is 64.
Sourcepub const fn accept_all_line_endings(
self,
enabled: bool,
) -> ResponseHeaderDecoderOptions
pub const fn accept_all_line_endings( self, enabled: bool, ) -> ResponseHeaderDecoderOptions
Enable or disable acceptance of all line endings (CR, LF, CRLF).
Sourcepub const fn max_line_length(
self,
max_length: Option<usize>,
) -> ResponseHeaderDecoderOptions
pub const fn max_line_length( self, max_length: Option<usize>, ) -> ResponseHeaderDecoderOptions
Set maximum line length.
Sourcepub const fn max_header_field_length(
self,
max_length: Option<usize>,
) -> ResponseHeaderDecoderOptions
pub const fn max_header_field_length( self, max_length: Option<usize>, ) -> ResponseHeaderDecoderOptions
Set maximum header field length.
Sourcepub const fn max_header_fields(
self,
max_fields: Option<usize>,
) -> ResponseHeaderDecoderOptions
pub const fn max_header_fields( self, max_fields: Option<usize>, ) -> ResponseHeaderDecoderOptions
Set maximum number of header fields.
Trait Implementations§
Source§impl Clone for ResponseHeaderDecoderOptions
impl Clone for ResponseHeaderDecoderOptions
Source§fn clone(&self) -> ResponseHeaderDecoderOptions
fn clone(&self) -> ResponseHeaderDecoderOptions
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 Default for ResponseHeaderDecoderOptions
impl Default for ResponseHeaderDecoderOptions
Source§fn default() -> ResponseHeaderDecoderOptions
fn default() -> ResponseHeaderDecoderOptions
Returns the “default value” for a type. Read more
impl Copy for ResponseHeaderDecoderOptions
Auto Trait Implementations§
impl Freeze for ResponseHeaderDecoderOptions
impl RefUnwindSafe for ResponseHeaderDecoderOptions
impl Send for ResponseHeaderDecoderOptions
impl Sync for ResponseHeaderDecoderOptions
impl Unpin for ResponseHeaderDecoderOptions
impl UnwindSafe for ResponseHeaderDecoderOptions
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