Expand description
This crate provides a tower service designed to provide embedded static
assets support for web application. This service includes the following HTTP features:
- Support for GET and HEAD requests
- Content-Type header generation based on file MIME types
- ETag header generation and validation
- Last-Modified header generation and validation
§Usage
Please see the examples directory for a working example.
Re-exports§
pub use rust_embed;
Structs§
- Response
Body - The body used in crate responses.
- Response
Future - Response future of
ServeEmbed - Serve
Embed - Service that serves files from embedded assets.