(method: Method, uri: Uri)
| 1233 | } |
| 1234 | |
| 1235 | async 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 | |
| 1246 | async fn webkit_inspector_ui_redirect() -> Redirect { |
| 1247 | Redirect::temporary("/webkit-inspector-ui/Main.html") |
nothing calls this directly
no test coverage detected