postInvocationResponse method

Future<Response> postInvocationResponse(
  1. String? requestId,
  2. dynamic payload
)

Post the invocation response to the AWS Lambda Runtime Interface.

Implementation

Future<http.Response> postInvocationResponse(
    String? requestId, dynamic payload) async {
  return await _client.post(
    Uri.parse(
      'http://$runtimeApi/$runtimeApiVersion/runtime/invocation/$requestId/response',
    ),
    body: jsonEncode(payload),
  );
}