Expand description
Core functionalities of tower-embed.
Modules§
- file
- File handling utilities.
- headers
- Typed HTTP headers to be used with
httpcrate. - response
- Standard HTTP responses for common status codes.
Structs§
- Body
- The body used in responses.
- Content
- A stream of binary content.
- Embedded
- An embedded binary asset.
- Metadata
- Metadata associated with an embedded asset.
- NotFound
Page - A service that serves a custom not found page.
- Response
Future - Response future used in this crate.
- Serve
Embed - Service that serves files from embedded assets.
Traits§
- Embed
- The trait used to access to embedded assets.
- Embed
Ext - Extension trait for
Embed. - Embed
Folder - A trait for types that embed a folder of assets.
- Embedded
Ext - Trait extension for converting embedded assets into HTTP responses.
Functions§
- content_
type - Returns the MIME type of file.
- etag
- Returns the unique identifier tag of the content.
- last_
modified - Returns the last modification time of file.
Type Aliases§
- BoxError
- Type-erased error type.