Crates.io | http-file |
lib.rs | http-file |
version | 0.1.0 |
source | src |
created_at | 2023-12-29 03:14:20.10706 |
updated_at | 2023-12-29 03:14:20.10706 |
description | file serving for http crate type |
homepage | |
repository | https://github.com/HFQR/xitca-web |
max_upload_size | |
id | 1082934 |
size | 30,155 |
use http::Request;
use http_file::ServeDir;
async fn serve(req: &Request<()>) {
let dir = ServeDir::new("sample");
let res = dir.serve(&req).await;
}
see project Cargo.toml
for dependency versioning. ↩