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

Function serve_static_under

packages/server/src/static_files/mod.rs:15–23  ·  view source on GitHub ↗
(
    root: PathBuf,
    mount_prefix: &str,
    method: Method,
    uri: Uri,
    access_token: Option<String>,
)

Source from the content-addressed store, hash-verified

13}
14
15pub async fn serve_static_under(
16 root: PathBuf,
17 mount_prefix: &str,
18 method: Method,
19 uri: Uri,
20 access_token: Option<String>,
21) -> Result<Response<Body>, StatusCode> {
22 serve_static_inner(root, Some(mount_prefix), false, method, uri, access_token).await
23}
24
25async fn serve_static_inner(
26 root: PathBuf,

Callers 2

chrome_devtools_ui_fileFunction · 0.85
webkit_inspector_ui_fileFunction · 0.85

Calls 1

serve_static_innerFunction · 0.85

Tested by

no test coverage detected