Expand description
Serve static files and directories for Salvo web framework.
This crate provides handlers for serving static content:
StaticDir- Serve files from directory with options for directory listingStaticFile- Serve a single fileStaticEmbed- Serve embedded files using rust-embed (when “embed” feature is enabled)
Read more: https://salvo.rs
Re-exports§
pub use dir::StaticDir;
Modules§
- dir
- Serve static directories with directory listing support
Structs§
- Static
Embed embed - Handler that serves embedded files using
rust-embed. - Static
File StaticFileis a handler that serves a single static file.
Traits§
- Embedded
File Ext embed - Extension trait for
EmbeddedFile.
Functions§
- render_
embedded_ file embed - Render an
EmbeddedFileto theResponse. - static_
embed embed - Create a new
StaticEmbedhandler for the given embedded asset type.