(
root: PathBuf,
method: Method,
uri: Uri,
access_token: Option<String>,
)
| 4 | use std::path::{Component, Path, PathBuf}; |
| 5 | |
| 6 | pub async fn serve_static( |
| 7 | root: PathBuf, |
| 8 | method: Method, |
| 9 | uri: Uri, |
| 10 | access_token: Option<String>, |
| 11 | ) -> Result<Response<Body>, StatusCode> { |
| 12 | serve_static_inner(root, None, true, method, uri, access_token).await |
| 13 | } |
| 14 | |
| 15 | pub async fn serve_static_under( |
| 16 | root: PathBuf, |
no test coverage detected