Skip to main content

parse_origin_form

Function parse_origin_form 

Source
pub fn parse_origin_form(input: &[u8]) -> Result<&str, DecodeError>
Expand description

Checks a request target in origin form (RFC 9112 §3.2.1): it starts with / and holds visible ASCII only.

§Errors

DecodeError::Malformed "request target".