Crate salvo_extra

source ·
Expand description

Extra features for Savlo web framework.

This library provides some common web features.

salvo_extra uses a set of [feature flags] to reduce the amount of compiled and optional dependencies.

§Feature flags

FeatureDescription
affix-stateMiddleware for adding prefix and suffix to the request path
basic-authMiddleware for basic authentication
caching-headersMiddleware for setting caching headers
catch-panicMiddleware for catching panics
concurrency-limiterMiddleware for limiting concurrency
force-httpsMiddleware for forcing HTTPS
loggingMiddleware for logging requests and responses
request-idMiddleware for setting a request ID
size-limiterMiddleware for limiting request size
sseServer-Sent Events (SSE) middleware
timeoutMiddleware for setting a timeout
trailing-slashMiddleware for handling trailing slashes
tower-compatAdapters for tower::Layer and tower::Service
websocketWebSocket implementation

Re-exports§

Modules§