is_rfc7230_token

Function is_rfc7230_token 

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

Whether s is an RFC 7230 token (the tchar grammar): the method and every header NAME must match it. A non-token would smuggle framing bytes (spaces, CR/LF, control characters) into the interpolated request head — the request-splitting recipe.