Skip to main content

Crate tako_rs_extractors

Crate tako_rs_extractors 

Source
Expand description

Concrete request extractor implementations for the Tako framework.

The FromRequest and FromRequestParts traits live in tako-core. The Json and Params extractors also stay there because their internal types are referenced by the router. Everything else (header_map, cookies, query, path, form, ipaddr, accept, basic/bearer auth, jwt, byte body, range, state, plus the optional multipart/protobuf/simdjson and zero-copy variants) lives here. Re-exported under tako::extractors::* via the umbrella crate.

Modules§

acc_lang
Accept-Language header parsing and locale extraction. Accept-Language header parsing and locale preference extraction for internationalization.
accept
Content negotiation via Accept header parsing. Content negotiation extractor for parsing the Accept header.
basic
Basic HTTP authentication credential extraction. Basic HTTP authentication credential extraction from Authorization headers.
bearer
Bearer token authentication extraction from Authorization header. Bearer token authentication extraction from Authorization headers.
bytes
Raw byte data extraction from request bodies. Raw request body access for HTTP requests.
connect_info
ConnectInfo<T> typed view over tako_rs_core::conn_info::ConnInfo. ConnectInfo<T> extractor — typed access to per-connection transport data.
content_length_limit
ContentLengthLimit<T, N> body-bound extractor wrapper. ContentLengthLimit<T, N> extractor — bounded body extractor wrapper.
cookie_jar
Cookie parsing and management utilities. Cookie extraction and management for HTTP requests.
cookie_key_expansion
Cookie key derivation and expansion for encryption/signing. Key derivation and expansion for secure cookie operations.
cookie_private
Private (encrypted) cookie handling with automatic decryption. Private cookie extraction and management for HTTP requests.
cookie_signed
Signed cookie handling with HMAC verification. Signed cookie extraction and management for HTTP requests.
extension
Extension<T> typed extractor for request-scoped values. Extension<T> extractor — axum parity for request-scoped values.
form
Form data (application/x-www-form-urlencoded) parsing. Form data extraction from HTTP request bodies.
header_map
HTTP header map extraction and manipulation. Header extraction from HTTP requests.
ipaddr
IP address extraction from request headers and connection info. Client IP address extraction from HTTP request headers.
jwt
JSON Web Token (JWT) handling with HMAC verification. JWT token extraction and claims parsing from Authorization headers.
matched_path
MatchedPath extractor — the route template that matched the request. MatchedPath extractor — the route template that matched the request.
path
URL path component extraction and manipulation. Path extraction from HTTP requests.
query
Query parameter parsing from URL query strings. Query parameter extraction and deserialization from URL query strings.
query_multi
Multi-value query parser preserving repeated keys and CSV expansions. Multi-value query extractor.
state
Global state extraction for accessing shared app state. Global state extraction for retrieving shared application state.
uri_parts
URI-derived extractors (OriginalUri, Host, Scheme). URI-derived extractors: OriginalUri, Host, Scheme.