[][src]Module actix_web::fs

Static files support

Structs

ChunkedReadFile

A helper created from a std::fs::File which reads the file chunk-by-chunk on a CpuPool.

DefaultConfig

Default content disposition as described in StaticFileConfig

Directory

A directory; responds with the generated directory listing.

NamedFile

A file with an associated name.

StaticFiles

Static files handling

Traits

StaticFileConfig

Describes StaticFiles configiration

Functions

file_extension_to_mime

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 type application/octet-stream.