Skip to main content

is_uri_target

Function is_uri_target 

Source
pub const fn is_uri_target(b: u8) -> bool
Expand description

Whether b may appear in a request target: pchar / "/" / "?" or the % of a pct-encoded triple (whose digits are checked apart).

ยงExamples

assert!(parse_net::class::is_uri_target(b'?'));
assert!(!parse_net::class::is_uri_target(b'#'));