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

Function metro_proxy_asset

packages/server/src/api/routes.rs:1260–1276  ·  view source on GitHub ↗
(
    Path((port, path)): Path<(u16, String)>,
    method: Method,
    headers: HeaderMap,
    uri: Uri,
    body: Bytes,
)

Source from the content-addressed store, hash-verified

1258}
1259
1260async fn metro_proxy_asset(
1261 Path((port, path)): Path<(u16, String)>,
1262 method: Method,
1263 headers: HeaderMap,
1264 uri: Uri,
1265 body: Bytes,
1266) -> Response {
1267 metro_proxy_response(
1268 port,
1269 &format!("/{path}"),
1270 uri.query(),
1271 method,
1272 headers,
1273 body,
1274 )
1275 .await
1276}
1277
1278async fn metro_proxy_response(
1279 port: u16,

Callers

nothing calls this directly

Calls 2

metro_proxy_responseFunction · 0.85
queryMethod · 0.80

Tested by

no test coverage detected