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 query and fragment data from a request target.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_runtime_core::http::request_path_without_query("/");
  • crate::http for adjacent helpers that share the same runtime surface.