Crate salvo_core

source ·
Expand description

The core crate of Savlo web framework.

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

§Feature flags

FeatureDescriptionDefault?
cookieSupport for Cookie✔️
serverBuilt-in Server implementation✔️
http1Support for HTTP 1.1 protocol✔️
http2Support for HTTP 2 protocol✔️
quinnUse quinn to support HTTP 3 protocol
testUtilities for testing application✔️
acmeAutomatically obtain certificates through ACME
rustlsTLS built on rustls
opensslTLS built on openssl-tls
native-tlsTLS built on native-tls
unixListener based on unix socket
tower-compatAdapters for tower::Layer and tower::Service
anyhowIntegrate with the anyhow crate
eyreIntegrate with the eyre crate

Re-exports§

Modules§

  • Catch and handle errors.
  • Various listener implementations for handling HTTP connections.
  • Extract is a feature to let you deserialize request to custom type.
  • Filesystem module
  • Protecting the server from slow HTTP attacks.
  • Handler module for handle Request.
  • The HTTP related types and functions.
  • A list of things that automatically imports into application use salvo_core.
  • Http protocol supports.
  • Routing and filters.
  • Runtime module.
  • serverserver
    Server module
  • testtest
    Utilities for testing application.
  • tower_compattower-compat
    Tower service compat.
  • Provides the client and server support for WebTransport sessions.
  • Writer trait and it’s implements.

Structs§

  • Depot is for store temp data of current request.
  • Service http request.

Enums§

  • Errors that can happen inside salvo.

Type Aliases§

  • BoxedError is a boxed error type that can be used as a trait object.
  • Result type which has salvo::Error as it’s error type.

Attribute Macros§

  • Re-export async_trait.
  • handler is a macro to help create Handler from function or impl block easily.