Skip to main content

url_effect

Function url_effect 

Source
pub fn url_effect(raw: &str) -> Option<EffectKey>
Expand description

The egress effect of a URL in its strict form (scheme://[userinfo@]host[:port][/path][?query][#fragment]). None for anything else: no scheme (programs guess one), non-ASCII, whitespace, control characters, \\, quotes, shell expansion, more than one @ in the authority, a host that is not a DNS name or IP literal, a bad port, or curl glob characters ({ } [ ] * ,) outside an IPv6 host literal. The host must also be the one the URL crate reads, so a program’s parser and ours cannot disagree.