AWSStreamedHttpRequest class

A streaming HTTP request.

Inheritance

Constructors

AWSStreamedHttpRequest({required AWSHttpMethod method, required Uri uri, Map<String, String>? headers, Stream<List<int>>? body, int? contentLength})
@{macro aws_common.aws_http_streamed_request}
AWSStreamedHttpRequest.delete(Uri uri, {Stream<List<int>>? body, int? contentLength, Map<String, String>? headers})
Creates a DELETE request for uri.
AWSStreamedHttpRequest.get(Uri uri, {Map<String, String>? headers})
Creates a GET request for uri.
AWSStreamedHttpRequest.head(Uri uri, {Map<String, String>? headers})
Creates a HEAD request for uri.
AWSStreamedHttpRequest.patch(Uri uri, {Stream<List<int>>? body, int? contentLength, Map<String, String>? headers})
Creates a PATCH request for uri.
AWSStreamedHttpRequest.post(Uri uri, {Stream<List<int>>? body, int? contentLength, Map<String, String>? headers})
Creates a POST request for uri.
AWSStreamedHttpRequest.put(Uri uri, {Stream<List<int>>? body, int? contentLength, Map<String, String>? headers})
Creates a PUT request for uri.
AWSStreamedHttpRequest.raw({required AWSHttpMethod method, String scheme = 'https', required String host, int? port, required String path, Map<String, Object>? queryParameters, Map<String, String>? headers, Stream<List<int>>? body, int? contentLength})
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.

Properties

body Stream<List<int>>
The request's body stream.
no setteroverride
bodyBytes Future<Uint8List>
The collected bytes of the body stream.
no setteroverride
contentLength FutureOr<int>
The request's content length.
latefinal
debugNumSplits int
The number of times the body stream has been split.
getter/setter pair
hasContentLength bool
Whether the request has a known content length.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
The case-insensitive headers of the request.
finalinherited
host String
The host for the request.
finalinherited
httpRequest → StreamedRequest
Creates a package:http request from this request.
no setterinherited
method AWSHttpMethod
The method of the request.
finalinherited
path String
The path of the request.
finalinherited
port int?
The port of the request.
finalinherited
queryParameters Map<String, String>
Query parameters for the request.
no setterinherited
queryParametersAll Map<String, List<String>>
All query parameters for the request.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
The scheme of the request, e.g. https.
finalinherited
uri Uri
The URI of the request.
latefinalinherited

Methods

close() Future<void>
Closes the resource and all connected objects.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send([Client? client]) Future<AWSStreamedHttpResponse>
Sends the HTTP request.
inherited
split() Stream<List<int>>
Returns a copy of body in cases where the stream must be read multiple times, e.g. when contentLength is not provided and the service requires it.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited