Skip to main content

require_path_segment

Function require_path_segment 

Source
pub fn require_path_segment(value: &str) -> Result<&str>
Expand description

Refuse an id read from a response or a local file before it becomes one URL path segment. URL parsing removes . and .. segments, so either would move the request to a parent route.