Re-exports§
pub use crate::middleware::MiddleWareHandler;pub use crate::middleware::middlewares;pub use headers;
Modules§
- extractor
- 萃取器模块
- header
- HTTP header types
- middleware
- prelude
- protocol
Structs§
- Configs
- A type map of protocol extensions.
- Handler
Wrapper - 处理器包装结构体
包含
请求类型:
Option<Method>请求方法:Handler其中请求类型可为空,用来定义中间件 请求方法不可为空,用来定义处理器 处理器为返回值为Into<Bytes>+From<Bytes>的异步函数或者闭包函数 - Listeners
- Listeners
Builder - Method
- The Request Method (VERB)
- NetServer
- 与协议无关的通用网络服务器。
- Next
- The
Nextstruct is used to chain multiple middlewares and endpoints together. - Rate
Limiter Config - 限流器配置(令牌桶算法)。
- Request
- 请求体
- Response
- 响应体
- Server
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.).
Enums§
- Listener
- Silent
Error - SilentError is the error type for the
silentlibrary. - Socket
Addr
Traits§
- Connection
- Connection
Service - 与协议无关的连接处理服务。
- Handler
- Listen
- Protocol
- 通用协议适配抽象
Type Aliases§
- Accept
Future - 接受连接的 Future。
- BoxError
- 统一的错误类型,用于连接处理。
- Boxed
Connection - Connection
Future - 连接处理的 Future 类型。
- Result