Skip to main content

is_http_header_name

Function is_http_header_name 

Source
pub fn is_http_header_name(s: &str, strict: bool) -> bool
Expand description

Returns true if s is a valid HTTP header name.

When strict is true, validates against RFC 7230 token characters. When strict is false, only rejects NUL, CR, and LF.