| Crates.io | http-file |
| lib.rs | http-file |
| version | 0.2.0 |
| created_at | 2023-12-29 03:14:20.10706+00 |
| updated_at | 2025-03-12 03:49:24.222597+00 |
| description | file serving for http crate type |
| homepage | |
| repository | https://github.com/HFQR/xitca-web |
| max_upload_size | |
| id | 1082934 |
| size | 45,323 |
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. ↩