MockRequestHandler typedef

MockRequestHandler = FutureOr<AWSBaseHttpResponse> Function(AWSHttpRequest request, bool isCancelled())

A mock request handler for use with MockAWSHttpClient.

Implementation

typedef MockRequestHandler = FutureOr<AWSBaseHttpResponse> Function(
  AWSHttpRequest request,
  bool Function() isCancelled,
);