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.
trailing-slash
Trailing slash middleware
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.
force-https
Middleware for force redirect to http uri.
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
Serve static embed assets.
serve-static
StaticFile
An HTTP status code (status-code
in RFC 7230 et al.).
StatusError contains http error information.
TcpListener
timeout
Timeout
trailing-slash
TrailingSlash
Unix domain socket listener.
Creates a WebSocket Handler. Request:
Enums
compression
CompressionAlgo
Write text content to response as text content.
trailing-slash
TrailingSlashAction
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
.
serve-static
Create a new StaticEmbed
middleware.
Attribute Macros
handler
is a pro macro to help create Handler
from function or impl block easily.
Derive Macros
Generate code for extractible type.