Skip to main content

try_font_route

Function try_font_route 

Source
pub fn try_font_route(path: &str, cors_origin: Option<&str>) -> Option<Response>
Expand description

Try to match a font route from a raw request path (any prefix). Handles /fonts, /vt/fonts, /font/Name, /vt/font/Name%20With%20Spaces. Returns Some(response) if the path matched a font route, None otherwise.