Crate actix_files
source ·Expand description
Static file serving for Actix Web.
Provides a non-blocking service for serving static files from disk.
§Examples
use actix_web::App;
use actix_files::Files;
let app = App::new()
.service(Files::new("/static", ".").prefer_utf8(true));
Re-exports§
pub use self::chunked::ChunkedReadFile;
Structs§
- A directory; responds with the generated directory listing.
- Static files handling service.
- Assembled file serving service.
- HTTP Range header representation.
- A file with an associated name.
Functions§
- Return the MIME type associated with a filename extension (case-insensitive). If
ext
is empty or no associated type for the extension was found, returns the typeapplication/octet-stream
.