MCPcopy Create free account
hub / github.com/PerroEngine/Perro / split_query_args_impl

Function split_query_args_impl

perro_source/api_modules/perro_web/src/lib.rs:39–50  ·  view source on GitHub ↗
(href: &str)

Source from the content-addressed store, hash-verified

37}
38
39fn split_query_args_impl(href: &str) -> Vec<String> {
40 let Some((_, tail)) = href.split_once('?') else {
41 return Vec::new();
42 };
43 tail.split('#')
44 .next()
45 .unwrap_or("")
46 .split('&')
47 .filter(|part| !part.is_empty())
48 .map(str::to_string)
49 .collect()
50}
51
52fn pending_route_slot() -> &'static Mutex<Option<String>> {
53 static SLOT: OnceLock<Mutex<Option<String>>> = OnceLock::new();

Callers 2

split_query_argsFunction · 0.85
get_args_implFunction · 0.85

Calls 2

nextMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected