Crate salvo_core
source ·Expand description
The core lib of Savlo web server framework. Read more: https://salvo.rs
Re-exports§
pub use self::server::Server;serverpub use tower_compat::TowerServiceCompat;tower-compatpub use tower_compat::TowerLayerCompat;tower-compatpub use self::conn::Listener;pub use self::extract::Extractible;pub use self::handler::Handler;pub use self::http::Request;pub use self::http::Response;pub use self::routing::FlowCtrl;pub use self::routing::Router;pub use self::writing::Scribe;pub use self::writing::Writer;pub use hyper;pub use salvo_macros as macros;
Modules§
- Catch and handle errors.
- Various listener implementations for handling HTTP connections.
- Extract is a feature to let you deserialize request to custom type.
- Filesystem module
- Protecting the server from slow HTTP attacks.
- Handler module for handle
Request. - The http related types and functions.
- A list of things that automatically imports into application use salvo_core.
- Http protocol supports.
- Routing and filters Router can route http requests to different handlers.
- runtime module.
- server
serverServer module - test
testTest utils for unit tests. - tower_compat
tower-compatTower service compat. - webtransport
quinnProvides the client and server support for WebTransport sessions. - Writer trait and it’s implements.
Structs§
Depotis for store temp data of current request.- Service http request.
Enums§
- Errors that can happen inside salvo.
Type Aliases§
BoxedErroris a boxed error type that can be used as a trait object.- Result type which has
salvo::Erroras it’s error type.
Attribute Macros§
- Re-export
async_trait. handleris a macro to help createHandlerfrom function or impl block easily.