send method

Future<RestXmlResponse> send({
  1. required String method,
  2. required String requestUri,
  3. required Map<String, AwsExceptionFn> exceptionFnMap,
  4. bool signed = true,
  5. Map<String, List<String>>? queryParams,
  6. Map<String, String>? headers,
  7. dynamic payload,
  8. String? resultWrapper,
})

Implementation

Future<RestXmlResponse> send({
  required String method,
  required String requestUri,
  required Map<String, AwsExceptionFn> exceptionFnMap,
  bool signed = true,
  Map<String, List<String>>? queryParams,
  Map<String, String>? headers,
  dynamic payload,
  String? resultWrapper,
}) async {
  final rs = await sendRaw(
    method: method,
    requestUri: requestUri,
    exceptionFnMap: exceptionFnMap,
    signed: signed,
    queryParams: queryParams,
    headers: headers,
    payload: payload,
    resultWrapper: resultWrapper,
  );

  final elem = await xmlFromResponse(rs, resultWrapper: resultWrapper);
  return RestXmlResponse(rs.headers, elem);
}