Skip to main content

escape

Function escape 

Source
fn escape(name: &str) -> String
Expand description

Percent-encodes what a hostname may legitimately carry and a query string may not. A hostname is letters, digits, hyphens, dots and underscores (_atproto), so this is a narrow guard against a caller’s typo reaching the resolver as query syntax rather than a general encoder.