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
Background task queue for running tasks after response is sent.
BasicAuth
Extracts HTTP Basic authentication credentials from the Authorization header.
BearerToken
Simple HTTP bearer token extractor.
ContentType
Content-Type header marker.
Cookie
A cookie to set in the response.
Header
Header extractor for individual HTTP headers.
HeaderValues
Multiple header values extractor.
Host
Host header marker.
Json
JSON body extractor.
JsonConfig
Configuration for JSON request body extraction.
NamedHeader
Named header extractor with explicit header name.
OAuth2PasswordBearer
OAuth2 password bearer security scheme extractor.
Page
Paginated response wrapper.
Pagination
Pagination query parameters extractor.
PaginationConfig
Configuration for pagination behavior.
Path
Path parameter extractor.
PathParams
Extracted path parameters stored in request extensions.
Query
Query string extractor.
QueryParams
Stored query parameters for extraction.
RequestRef
Read-only request data access.
ResponseMut
Mutable response wrapper for setting headers and cookies.
ResponseMutations
Mutable response container for setting response headers and cookies.
State
State extractor for application-wide shared state.
UserAgent
User-Agent header marker.
XRequestId
X-Request-Id header marker.