Skip to main content

DEFAULT_HTTP1_REQUEST_LINE_MAX_SIZE

Constant DEFAULT_HTTP1_REQUEST_LINE_MAX_SIZE 

pub const DEFAULT_HTTP1_REQUEST_LINE_MAX_SIZE: usize = _; // 8_192usize
Available on crate feature net only.
Expand description

Default maximum number of bytes inspected for an HTTP/1 request-line.

RFC 9112 recommends that HTTP senders and recipients support request-lines of at least 8000 octets. The slightly larger power-of-two default leaves room for the terminating CRLF while keeping protocol detection bounded.