Crate salvo_core

source ·
Expand description

The core lib of Savlo web server framework. Read more: https://salvo.rs

Re-exports

Modules

  • Catcher is the default implement Handler for catch page error.
  • Listener trait and it’s implements.
  • Extract is a feature to let you deserialize request to custom type.
  • Filesystem module
  • Handler is used for handle Request.
  • Http module
  • A list of things that automatically imports into application use salvo_core.
  • Routing and filters Router can route http requests to different handlers.
  • runtime module.
  • testtest
    Test utils for unit tests.
  • Writer trait and it’s implements.

Structs

  • Depot is for store temp data of current request. Each handler can read or write data to it.
  • HTTP Server
  • Service http request.

Enums

  • Errors that can happen inside salvo.

Type Definitions

  • BoxedError
  • Result type which has salvo::Error as it’s error type.

Attribute Macros

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