Module salvo::prelude [−][src]
Expand description
A list of things that automatically imports into application use salvo.
Structs
Depot if for store temp data of current request. Each handler can read or write data to it.
Write text content to response as html content. It will set content-type
to text/html; charset=utf-8
.
HttpError contains http error information.
JoinedListener
Write serializable content to response as json content. It will set content-type
to application/json; charset=utf-8
.
Write text content to response as json content. It will set content-type
to application/json; charset=utf-8
.
Write text content to response as text content. It will set content-type
to text/plain; charset=utf-8
.
Represents an HTTP request.
Represents an HTTP response
Router struct is used for route request to different handlers.
RustlsListener
Server
Service http request.
An HTTP status code (status-code
in RFC 7230 et al.).
TcpListener
UnixListener
Enums
ReadError, errors happened when read data from http request.
Traits
Handler trait for handle http request.
Listener trait
Writer is used to write data to response.
Functions
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Create a new HttpError
.
Type Definitions
Resut type with HttpError
has it’s error type.
Attribute Macros
fn_handler
is a pro macro to help create Handler
from function easily.