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

Function query_has_param

packages/server/src/devtools.rs:888–895  ·  view source on GitHub ↗
(query: &str, needle: &str)

Source from the content-addressed store, hash-verified

886}
887
888fn query_has_param(query: &str, needle: &str) -> bool {
889 query.split('&').any(|param| {
890 param
891 .split_once('=')
892 .map(|(key, _)| key == needle)
893 .unwrap_or(false)
894 })
895}
896
897fn websocket_path_with_access_token(path: String, access_token: Option<&str>) -> String {
898 let Some(access_token) = access_token

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected