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

Function webkit_targets

packages/server/src/api/routes.rs:1041–1048  ·  view source on GitHub ↗
(
    Path(udid): Path<String>,
    headers: HeaderMap,
)

Source from the content-addressed store, hash-verified

1039}
1040
1041async fn webkit_targets(
1042 Path(udid): Path<String>,
1043 headers: HeaderMap,
1044) -> Result<Json<webkit::WebKitTargetDiscovery>, AppError> {
1045 let origin = request_origin(&headers);
1046 let discovery = webkit::discover_targets(&udid, origin.as_deref()).await?;
1047 Ok(Json(discovery))
1048}
1049
1050async fn webkit_target_socket(
1051 Path((udid, target_id)): Path<(String, String)>,

Callers

nothing calls this directly

Calls 2

request_originFunction · 0.85
discover_targetsFunction · 0.50

Tested by

no test coverage detected