Skip to main content

Module extract

Module extract 

Source
Expand description

§Extractor 模块

提供请求参数提取器的统一封装,基于 axum extractors 进行扩展。

§支持的 Extractors

§错误处理

所有提取器错误统一转换为 ExtractorError,便于统一处理。

Structs§

Extension
Extractor and response for extensions.
Form
URL encoded extractor and response.
Header
请求头提取器
Json
JSON Extractor / Response.
Path
Extractor that will get captures from the URL and parse them using serde.
Query
Extractor that deserializes query strings into some type.
State
Extractor for state.

Enums§

ExtractorError
Extractor 错误类型

Type Aliases§

Headers
请求头映射提取器
HttpMethod
HTTP 方法提取器
HttpVersion
HTTP 版本提取器
RawBody
原始请求体提取器
RequestUri
请求 URI 提取器