Skip to main content

Crate tower_embed_core

Crate tower_embed_core 

Source
Expand description

Core functionalities of tower-embed.

Modules§

file
File handling utilities.
headers
Typed HTTP headers to be used with http crate.
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.
NotFoundPage
A service that serves a custom not found page.
ResponseFuture
Response future used in this crate.
ServeEmbed
Service that serves files from embedded assets.

Traits§

Embed
The trait used to access to embedded assets.
EmbedExt
Extension trait for Embed.
EmbedFolder
A trait for types that embed a folder of assets.
EmbeddedExt
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.