Skip to main content

normalize_resource

Function normalize_resource 

Source
pub fn normalize_resource(raw: &str) -> Result<String, ResourceError>
Expand description

Normalise a forge-qualified resource, allowing up to MAX_PATH_SEGMENTS path segments after the host.

Returns the canonical, lowercased form. See the module docs for the grammar and why only case is folded.