Skip to main content

at_path_reason

Function at_path_reason 

Source
pub fn at_path_reason(at: &str) -> Option<&'static str>
Expand description

Why at is not a valid fixed URL path for an asset, or None when it is. It must be an absolute URL path naming a file: starting with /, not ending in /, with no empty, . or .. segment, and only [A-Za-z0-9._~-] between the slashes (so it needs no encoding). It may not lie under SERVED_PREFIX (the content-hashed files’ space) or /_bynk/ (Bynk’s own dispatch), nor be one of the root files the platform reads as configuration (/_headers, /_redirects, /.assetsignore).