Skip to main content

parse_connection_header

Function parse_connection_header 

Source
pub fn parse_connection_header(value: Option<&[u8]>) -> ConnectionInfo
Expand description

Parses the Connection header from a request and returns connection info.

§Arguments

  • value - The raw Connection header value, or None if header is missing

§Returns

Parsed ConnectionInfo with all directives and hop-by-hop header names.