Expand description
DIPPER Core modules
Modules§
- affix_
state - Middleware for adding shared application state to the request context.
- api_
craft - app
- catch_
panic - Middleware for catch panic in handlers.
- core
- The core crate of Salvo web framework.
- dyn_mod
- fnd
- This is the foundation module, providing best practices for auxiliary services such as identity authentication (authn), data authorization (authz), and email.
- jwt_
auth - Provides JWT (JSON Web Token) authentication support for the Salvo web framework.
- mode
- mw
- oapi
- OpenAPI support for salvo, modified from utoipa, It uses simple proc macros which you can use to annotate your code to have items documented.
- otel
- prelude
Macros§
- dyn_
modules - Then, you will get
DynModules
struct. - init_
otel - module
- Create a
Module
which is associated with some components and providers. - new_app
Structs§
- Depot
- Store temp data for current request.
- Flow
Ctrl - Control the flow of execute handlers.
- Request
- Represents an HTTP request.
- Response
- Represents an HTTP response.
- Router
- Route request to different handlers.
- Server
- HTTP Server.
- Service
- Service http request.
Enums§
- Error
- Errors that can happen inside salvo.
Traits§
- Extractible
- If a type implements this trait, it will give a metadata, this will help request to extracts data to this type.
- Handler
Handler
is used for handleRequest
.- Listener
Listener
represents a listener that can bind to a specific address and port and return an acceptor.- Scribe
Scribe
is used to write data toResponse
.- Writer
Writer
is used to write data toResponse
.
Type Aliases§
- Boxed
Error BoxedError
is a boxed error type that can be used as a trait object.- Result
- Result type which has
salvo::Error
as its error type.
Attribute Macros§
- async_
trait - dipper
- handler
handler
is a macro to help createHandler
from function or impl block easily.