pub fn normalize_request_path(target: &str, max_bytes: usize) -> Option<String>Expand description
Normalizes an absolute request path without permitting parent traversal.
§Parameters
target: Input consumed bycrate::normalize_request_path.max_bytes: Input consumed bycrate::normalize_request_path.
§Returns
Returns Some when crate::normalize_request_path can produce a value and None otherwise.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::normalize_request_path.
§Examples
ⓘ
let _result = pharos_runtime_core::normalize_request_path("/", 1024);§Related
cratefor adjacent helpers that share the same runtime surface.