pub struct ConnectResponseLimits {
pub max_status_line: usize,
pub max_header_line: usize,
pub max_headers_bytes: usize,
pub max_header_count: usize,
}Expand description
Caller-provided bounds for a CONNECT response head.
max_header_count counts actual header fields only; the status line
and the terminal blank line are not counted. Aggregate accounting sums
the lengths of header lines without their trailing CRLF, excluding
the status line and terminator.
Fields§
§max_status_line: usizeMaximum status-line length in bytes (without CRLF).
max_header_line: usizeMaximum single header-line length in bytes (without CRLF).
max_headers_bytes: usizeMaximum aggregate header bytes (sum of header-line lengths).
max_header_count: usizeMaximum number of header fields.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectResponseLimits
impl Clone for ConnectResponseLimits
impl Copy for ConnectResponseLimits
Source§impl Debug for ConnectResponseLimits
impl Debug for ConnectResponseLimits
Source§impl Default for ConnectResponseLimits
impl Default for ConnectResponseLimits
impl Eq for ConnectResponseLimits
Source§impl PartialEq for ConnectResponseLimits
impl PartialEq for ConnectResponseLimits
impl StructuralPartialEq for ConnectResponseLimits
Auto Trait Implementations§
impl Freeze for ConnectResponseLimits
impl RefUnwindSafe for ConnectResponseLimits
impl Send for ConnectResponseLimits
impl Sync for ConnectResponseLimits
impl Unpin for ConnectResponseLimits
impl UnsafeUnpin for ConnectResponseLimits
impl UnwindSafe for ConnectResponseLimits
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