MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / metro_frontend_metadata_params

Function metro_frontend_metadata_params

packages/server/src/devtools.rs:856–871  ·  view source on GitHub ↗
(query: &str)

Source from the content-addressed store, hash-verified

854}
855
856fn metro_frontend_metadata_params(query: &str) -> Vec<(String, String)> {
857 query
858 .split('&')
859 .filter_map(|param| {
860 let (key, value) = param.split_once('=')?;
861 matches!(key, "ws" | "wss").then_some(value)
862 })
863 .flat_map(|value| {
864 let decoded = percent_decode_query_component(value);
865 split_path_query(&decoded)
866 .1
867 .map(metro_frontend_inspector_params)
868 .unwrap_or_default()
869 })
870 .collect()
871}
872
873fn metro_frontend_inspector_params(query: &str) -> Vec<(String, String)> {
874 query

Callers 1

Calls 2

split_path_queryFunction · 0.85

Tested by

no test coverage detected