Skip to main content

is_http_header_value

Function is_http_header_value 

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

Returns true if s is a valid HTTP header value.

When strict is true, rejects NUL, control chars (except HT), and DEL. When strict is false, only rejects NUL, CR, and LF.