fromResponse method
- HttpClientResponse response
Digesting a HttpClientResponse into a NextInvocation.
Implementation
static Future<NextInvocation> fromResponse(
HttpClientResponse response) async {
return NextInvocation(
response: json
.decode((await response.transform(Utf8Decoder()).toList()).first),
requestId: response.headers.value(runtimeRequestId),
deadlineMs: response.headers.value(runtimeDeadlineMs),
invokedFunctionArn: response.headers.value(runtimeInvokedFunctionArn),
traceId: response.headers.value(runtimeTraceId),
clientContext: response.headers.value(runtimeClientContext),
cognitoIdentity: response.headers.value(runtimeCognitoIdentity));
}