http-file 0.2.0

file serving for http crate type
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# an async static file serving crate


```rust
use http::Request;
use http_file::ServeDir;

async fn serve(req: &Request<()>) {
    let dir = ServeDir::new("sample");
    let res = dir.serve(&req).await;
}
```

## Requirement

- nightly Rust
- [http]https://crates.io/crates/http and [futures]https://crates.io/crates/futures for http types and async streaming interaction[^1]

[^1]: see project `Cargo.toml` for dependency versioning.