Skip to main content

classify_request_headers

Function classify_request_headers 

Source
pub fn classify_request_headers(
    headers: &HeaderMap,
    strict: bool,
) -> Result<Classification, String>
Expand description

Validate unique protocol headers before authenticating or reading a body.

ยงErrors

Returns an error for duplicate, malformed, or disallowed protocol headers.