read method
Reads body fully and returns a flattened AWSHttpRequest
.
this
will no longer be usable after this completes.
Implementation
@override
Future<AWSHttpRequest> read() async {
try {
return AWSHttpRequest(
method: method,
uri: uri,
headers: headers,
body: await bodyBytes,
followRedirects: followRedirects,
maxRedirects: maxRedirects,
);
} finally {
unawaited(close());
}
}