accepted method
will response with status code 202 will end the request life-cycle the guards still work but the can not respond or modify the response any more
Implementation
Future<void> accepted({
Object? data,
}) async {
/// set the status code
response.statusCode = io.HttpStatus.accepted;
/// append the data to the response
await json(
{
'status_code': io.HttpStatus.accepted,
'message': 'Accepted',
if (data != null) 'data': data,
},
);
}