AWSStreamedHttpRequest.raw constructor
AWSStreamedHttpRequest.raw({})
Creates a "raw", or unprocessed, streaming HTTP request. Since the Uri constructor will normalize paths by default, this constructor provides an escape hatch for situations when paths are already normalized and further processing could interfere with downstream activities like signing.
If you're unsure, it's likely safe to use AWSStreamedHttpRequest.new and Uri.
@{macro aws_common.aws_http_streamed_request_desc}
Implementation
AWSStreamedHttpRequest.raw({
required super.method,
super.scheme,
required super.host,
super.port,
required super.path,
super.queryParameters,
super.headers,
Stream<List<int>>? body,
int? contentLength,
super.followRedirects,
super.maxRedirects,
}) : _body = body ?? const Stream.empty(),
_contentLength = contentLength,
super._() {
_setContentTypeIfProvided(body);
}