is_head_safe

Function is_head_safe 

Source
pub fn is_head_safe(s: &str) -> bool
Expand description

Whether s is free of the bytes that terminate or split the HTTP/1.1 request head: CR, LF, and NUL. Header values and the map :path ride the head verbatim, so any of these bytes is rejected (a value may legally carry obs-text, which this check leaves alone).