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));Structs§
- Directory
- A directory; responds with the generated directory listing.
- Files
- Static files handling service.
- FilesService 
- Assembled file serving service.
- HttpRange 
- HTTP Range header representation.
- NamedFile 
- A file with an associated name.
Functions§
- file_extension_ to_ mime 
- Return the MIME type associated with a filename extension (case-insensitive).
If extis empty or no associated type for the extension was found, returns the typeapplication/octet-stream.