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§
- Connection
Limits - 连接级别的保护配置。
- Handler
Wrapper - 处理器包装结构体
- 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
- 响应体
- Route
Connection Service - RouteConnectionService 适配器
- Server
- Server
Config - Server 级配置入口。
- State
- 类型安全的键值存储容器。
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.).
Enums§
- Listener
- Remote
Addr - 表示请求的远端地址信息。
- Silent
Error - SilentError is the error type for the
silentlibrary. - Socket
Addr
Traits§
- Connection
- Connection
Service - 与协议无关的连接处理服务。
- Handler
- Into
Response - 将类型转换为 HTTP 响应的 trait。
- Listen
- Protocol
- 通用协议适配抽象
Type Aliases§
- Accept
Future - 接受连接的 Future。
- BoxError
- 统一的错误类型,用于连接处理。
- Boxed
Connection - Configs
Deprecated Configs是State的类型别名,保持向后兼容。- Connection
Future - 连接处理的 Future 类型。
- Result