get method
Uses Amplify configuration to authorize request to path
and returns
CancelableOperation
which resolves to standard HTTP
Response.
Implementation
@override
RestOperation get(
String path, {
Map<String, String>? headers,
Map<String, String>? queryParameters,
String? apiName,
}) {
final uri = _getRestUri(path, apiName, queryParameters);
final client = getHttpClient(EndpointType.rest, apiName: apiName);
return RestOperation.fromHttpOperation(
AWSHttpRequest.get(
uri,
headers: headers,
).send(client: client),
);
}