AWSHttpOperation<ResponseType extends AWSBaseHttpResponse> class

A wrapper over a CancelableOperation with progress monitoring support for in-flight HTTP requests sent with an AWSHttpClient.

Inheritance
Mixed in types

Constructors

AWSHttpOperation(CancelableOperation<ResponseType> operation, {required Stream<int> requestProgress, required Stream<int> responseProgress, FutureOr<void> onCancel()?})
Creates an AWSHttpOperation from a CancelableOperation.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
A unique identifier for the operation.
finalinherited
logger AWSLogger
The logger for this class.
no setterinherited
operation CancelableOperation<ResponseType>
The wrapped CancelableOperation which can be used for cancelable chaining and interop with other CancelableOperations.
finalinherited
requestProgress Stream<int>
The operation's progress sending the request, in bytes.
final
response Future<ResponseType>
The result of operation.
no setter
responseProgress Stream<int>
The operation's progress receiving a response, in bytes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
runtimeTypeName String
The string value of runtimeType, saving a runtime lookup and preventing obfuscation during web compilation.
no setteroverride

Methods

cancel() Future<void>
Cancels the pending or in-progress operation.
inherited
close() Future<void>
Closes the resource and all connected objects.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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