Skip to main content

request_path_without_query

Function request_path_without_query 

Source
pub fn request_path_without_query(target: &str) -> Option<String>
Expand description

Removes the query and fragment from a request target.

§Parameters

§Returns

Returns Some when crate::reference::request_path_without_query 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::reference::request_path_without_query.

§Examples

ⓘ
let _result = pharos_runtime_docs::reference::request_path_without_query("/");