Skip to main content

valid_name

Function valid_name 

Source
pub fn valid_name(name: &str) -> bool
Expand description

Strict validator for a served asset name. Permits only <hex16>.<allowed> — no path separators, no .., no query/fragment. The protocol handler and the GC both gate on this.