mirror of
https://github.com/actix/actix-web.git
synced 2025-02-19 20:36:16 +00:00
32 lines
1.1 KiB
Markdown
32 lines
1.1 KiB
Markdown
# `actix-files`
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
[](https://crates.io/crates/actix-files)
|
|
[](https://docs.rs/actix-files/0.6.6)
|
|

|
|

|
|
<br />
|
|
[](https://deps.rs/crate/actix-files/0.6.6)
|
|
[](https://crates.io/crates/actix-files)
|
|
[](https://discord.gg/NWpN5mmg3x)
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
<!-- cargo-rdme start -->
|
|
|
|
Static file serving for Actix Web.
|
|
|
|
Provides a non-blocking service for serving static files from disk.
|
|
|
|
## Examples
|
|
|
|
```rust
|
|
use actix_web::App;
|
|
use actix_files::Files;
|
|
|
|
let app = App::new()
|
|
.service(Files::new("/static", ".").prefer_utf8(true));
|
|
```
|
|
|
|
<!-- cargo-rdme end -->
|