Skip to main content

Module dispatch

Module dispatch 

Source

Structs§

DispatchConfig
Configuration passed to the dispatch handler.

Functions§

dispatch
The main dispatch handler. All HTTP requests come through here.
dispatch_to_service
Dispatch an in-process request straight to one REST-protocol service ("s3"), bypassing the HTTP router and service detection.
global_request_keys
Populate the global keys AWS sets on every request from who makes it and what it is made on: aws:ResourceAccount (the account owning the target resource), aws:PrincipalOrgID / aws:PrincipalOrgPaths when the principal’s account (principal_account) is in an organization, aws:ResourceOrgID / aws:ResourceOrgPaths when the resource’s account is, and aws:ViaAWSService (false unless a service set it for a call it forwards). org_of gives an account’s organization id and path. A value already present wins.
max_request_body_bytes
The server-wide buffered request body cap in bytes, from FAKECLOUD_MAX_REQUEST_BODY_BYTES (default 1 GiB). Public so buffered sub-proxies (e.g. the CloudFront viewer data plane) apply the SAME cap as direct traffic rather than an inconsistent limit of their own.
principal_type_label
AWS’s aws:PrincipalType uses PascalCase identifiers, distinct from the lowercase ones PrincipalType::as_str returns for ARNs.