Function httparse::parse_reason
source ยท pub(crate) fn parse_reason<'a>(bytes: &mut Bytes<'a>) -> Result<&'a str>
Expand description
From RFC 7230:
reason-phrase = *( HTAB / SP / VCHAR / obs-text ) HTAB = %x09 ; horizontal tab VCHAR = %x21-7E ; visible (printing) characters obs-text = %x80-FF
A.2. Changes from RFC 2616
Non-US-ASCII content in header fields and the reason phrase has been obsoleted and made opaque (the TEXT rule was removed).