Crate tower_embed

Crate tower_embed 

Source
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§

ResponseBody
The body used in crate responses.
ResponseFuture
Response future of ServeEmbed
ServeEmbed
Service that serves files from embedded assets.