Expand description
A list of things that automatically imports into application use salvo.
Modules
affix
affix middleware is used to add any data to depot.
Structs
A wrapper around an underlying listener which implements the ACME.
basic-auth
BasicAuth
caching-headers
compression
Compression
cors
Cors
csrf
Cross-Site Request Forgery (CSRF) protection middleware.
Depot if for store temp data of current request. Each handler can read or write data to it.
FlowCtrl
is used to control the flow of execute handlers.
JoinedListener
Write serializable content to response as json content. It will set content-type
to application/json; charset=utf-8
.
jwt-auth
JwtAuth, used as middleware.
Wrapper for Extractible type. [Handler
]’s parameters does not allow two extractible types has lifetime, wrap these types with LazyExtract
.
logging
Logger
NativeTlsListener
OpensslListener
proxy
Proxy
Response that redirects the request to another location.
Represents an HTTP request.
Represents an HTTP response
Router struct is used for route request to different handlers.
RustlsListener
HTTP Server
Service http request.
sse
Server-sent event
sse
SseKeepAlive
serve-static
StaticDir
serve-static
StaticFile
An HTTP status code (status-code
in RFC 7230 et al.).
StatusError contains http error information.
TcpListener
timeout
Timeout
Unix domain socket listener.
Creates a WebSocket Handler. Request:
Enums
compression
CompressionAlgo
Write text content to response as text content.
Traits
basic-auth
BasicAuthDepotExt
basic-auth
BasicAuthValidator
csrf
Provides access to request-level CSRF values.
jwt-auth
JwtAuthDepotExt
Listener trait
Writer is used to write data to response.
Functions
size-limiter
Create a new MaxSize
.
Attribute Macros
handler
is a pro macro to help create Handler
from function or impl block easily.
Derive Macros
Generate code for extractible type.