Module salvo_core::prelude
source · [−]Expand description
A list of things that automatically imports into application use salvo.
Re-exports
pub use crate::http::errors::*;
pub use crate::http::Request;
pub use crate::http::Response;
pub use crate::listener::RustlsListener;
pub use crate::listener::UnixListener;
pub use crate::listener::JoinedListener;
pub use crate::listener::Listener;
pub use crate::listener::TcpListener;
pub use crate::routing::FlowCtrl;
pub use crate::writer::*;
Structs
Depot if for store temp data of current request. Each handler can read or write data to it.
Router struct is used for route request to different handlers.
Server
Service http request.
An HTTP status code (status-code
in RFC 7230 et al.).
Traits
Handler trait for handle http request.
Attribute Macros
fn_handler
is a pro macro to help create Handler
from function easily.