Module salvo::prelude

source ·
Expand description

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

Modules

Structs

  • A wrapper around an underlying listener which implements the ACME.
  • BasicAuthbasic-auth
    BasicAuth
  • CachingHeaderscaching-headers
    A combined handler that provides both ETag and Modified behavior.
  • CatchPaniccatch-panic
    This middleware catches panics and write 500 INTERNAL SERVER ERROR into response. This middleware should be used as the first middleware.
  • Compressioncompression
    Compression
  • Depot is for store temp data of current request.
  • FlowCtrl is used to control the flow of execute handlers.
  • ForceHttpsforce-https
    Middleware for force redirect to http uri.
  • JoinedListener is a listener that can join two listeners.
  • Write serializable content to response as json content. It will set content-type to application/json; charset=utf-8.
  • JwtAuthjwt-auth
    JwtAuth, used as middleware.
  • Loggerlogging
    A simple logger middleware.
  • NativeTlsListener
  • Root object of the OpenAPI document.
  • OpensslListener
  • Proxyproxy
    Handler that can proxy request to other server.
  • A wrapper of Listener with quinn.
  • Implements Handler for serving RapiDoc.
  • ReDocoapi
    Implements Handler for serving ReDoc.
  • Response that redirects the request to another location.
  • Represents an HTTP request.
  • RequestIdrequest-id
    A middleware for generate request id.
  • Represents an HTTP response
  • Router struct is used for route request to different handlers.
  • A wrapper of Listener with rustls.
  • HTTP Server
  • Service http request.
  • SessionHandler is a middleware for session.
  • Server-sent event
  • SseKeepAlive
  • StaticDirserve-static
    Handler that serves a directory.
  • StaticFileserve-static
    StaticFile is a handler that serves a single file.
  • An HTTP status code (status-code in RFC 7230 et al.).
  • StatusError contains http error information.
  • Implements Handler for serving Swagger UI.
  • TcpListener is used to create a TCP connection listener.
  • Timeouttimeout
    Timeout
  • TrailingSlashtrailing-slash
    TrailingSlash
  • UnixListener is used to create a Unix socket connection listener.
  • Creates a WebSocket Handler. Request:

Enums

Traits

Functions

Attribute Macros

Derive Macros