Crate salvo[][src]

Expand description

Salvo is a powerful and simplest web server framework in Rust world. Read more: https://salvo.rs

Re-exports

pub use salvo_core as core;
pub use salvo_extra as extra;

Modules

addr module

Catcher tarit and it’s impl.

File module

Http

hyper

Server module

A list of things that automatically imports into application use salvo.

Routing and filters

Writer trait and it’s impls.

Structs

Default implementation of Catcher.

Depot if for store temp data of current request. Each handler can read or write data to it.

Errors that can happen inside salvo.

JoinedListener

Represents an HTTP request.

Represents an HTTP response

Router struct is used for route request to different handlers.

RustlsListener

Server

Service http request.

TcpListener

UnixListener

Traits

Catch error in current response.

Handler trait for handle http request.

Listener trait

Writer is used to write data to response.

Functions

If you don’t want to include tokio in your project directly, you can use this function to run server.

If you don’t want to include tokio in your project directly, you can use this function to run server.

Type Definitions

Result type wich has salvo::Error as it’s error type.

Attribute Macros

fn_handler is a pro macro to help create Handler from function easily.