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

Function chrome_devtools_ui_file

packages/server/src/api/routes.rs:1235–1244  ·  view source on GitHub ↗
(method: Method, uri: Uri)

Source from the content-addressed store, hash-verified

1233}
1234
1235async fn chrome_devtools_ui_file(method: Method, uri: Uri) -> Response {
1236 let Some(root) = devtools::chrome_devtools_frontend_root() else {
1237 return AppError::not_found("Chrome DevTools frontend resources are not available.")
1238 .into_response();
1239 };
1240 match static_files::serve_static_under(root, "/chrome-devtools-ui", method, uri, None).await {
1241 Ok(response) => response,
1242 Err(status) => status.into_response(),
1243 }
1244}
1245
1246async fn webkit_inspector_ui_redirect() -> Redirect {
1247 Redirect::temporary("/webkit-inspector-ui/Main.html")

Callers

nothing calls this directly

Calls 3

serve_static_underFunction · 0.85
into_responseMethod · 0.80

Tested by

no test coverage detected