MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / is_metro_proxy_path

Function is_metro_proxy_path

packages/server/src/devtools.rs:816–823  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

814}
815
816pub fn is_metro_proxy_path(path: &str) -> bool {
817 path.starts_with('/')
818 && !path.starts_with("//")
819 && !path
820 .bytes()
821 .any(|byte| byte < 0x20 || byte == 0x7f || byte == b'\\')
822 && !path.split('/').any(|part| part == "..")
823}
824
825pub fn is_metro_proxy_method(method: &str) -> bool {
826 matches!(method, "GET" | "HEAD" | "POST")

Callers 1

fetch_metro_resourceFunction · 0.85

Calls 1

bytesMethod · 0.65

Tested by

no test coverage detected