Skip to main content

Module extractors

Module extractors 

Source
Expand description

Extractors module for type-safe request data extraction.

Structsยง

Accept
Accept header marker.
AppState
Application state container.
Authorization
Authorization header marker.
BackgroundTasks
BasicAuth
HTTP Basic Authentication credentials extractor.
BearerToken
Bearer token extractor for Authorization: Bearer <token>.
ContentType
Content-Type header marker.
Cookie
Cookie value extractor.
Header
Header extractor for individual HTTP headers.
HeaderValues
Multiple header values extractor.
Host
Host header marker.
Json
JSON body extractor.
JsonConfig
Configuration for JSON extraction.
NamedHeader
Named header extractor with explicit header name.
OAuth2PasswordBearer
OAuth2 password bearer security scheme extractor.
Page
Generic paginated response payload.
Pagination
Pagination extractor: reads ?page= and ?per_page= from the query string.
PaginationConfig
Pagination extractor configuration.
Path
Path parameter extractor.
PathParams
Extracted path parameters stored in request extensions.
Query
Query string extractor.
QueryParams
Stored query parameters for extraction.
State
State extractor for application-wide shared state.
UserAgent
User-Agent header marker.
XRequestId
X-Request-Id header marker.