Module extract

Module extract 

Source
Expand description

Experimental extractors.

Structs§

BodyLimit
Extractor wrapper that limits size of payload used.
Bytes
Bytes extractor with const-generic payload size limit.
Host
Host information.
Json
JSON extractor with const-generic payload size limit.
JsonDeserializeError
Deserialization errors that can occur during parsing query strings.
LazyData
A lazy extractor for thread-local data.
LazyDataShared
A lazy extractor for globally shared data.
LocalData
A thread-local equivalent to SharedData.
Path
Extract typed data from request path segments.
Query
Extract typed information from the request’s query.
QueryDeserializeError
Deserialization errors that can occur during parsing query strings.
ReconstructedPath
Reconstructed path using X-Forwarded-Prefix header.
RequestSignature
Wraps an extractor and calculates a request signature hash alongside.
SwapData
A wrapper around ArcSwap that can be used as an extractor.
UrlEncodedForm
URL-encoded form extractor with const-generic payload size limit.
UrlEncodedFormDeserializeError
Errors that can occur while deserializing URL-encoded forms query strings.

Enums§

JsonPayloadError
A set of errors that can occur during parsing json payloads
RequestSignatureError
Errors that can occur when extracting and processing request signatures.

Constants§

DEFAULT_BODY_LIMIT
Default body size limit of 2MiB.
DEFAULT_BYTES_LIMIT
Default bytes payload size limit of 4MiB.
DEFAULT_JSON_LIMIT
Default JSON payload size limit of 2MiB.
DEFAULT_URL_ENCODED_FORM_LIMIT
Default URL-encoded form payload size limit of 2MiB.

Traits§

RequestSignatureScheme
Define a scheme for deriving and verifying some kind of signature from request parts.

Type Aliases§

SharedData
An alias for actix_web::web::Data<T> with a more descriptive name.