AWSHttpRequest constructor
AWSHttpRequest({})
A parameterized HTTP request.
The request is typically passed to a signer for signing, although it can be used unsigned as well for sending unauthenticated requests.
Implementation
AWSHttpRequest({
required AWSHttpMethod method,
required Uri uri,
Map<String, String>? headers,
List<int>? body,
}) : bodyBytes = body ?? const [],
contentLength = body?.length ?? 0,
super._(
method: method,
scheme: uri.scheme,
host: uri.host,
port: uri.hasPort ? uri.port : null,
path: uri.path,
queryParameters: uri.queryParametersAll,
headers: headers,
);