respond method

  1. @override
Future<void> respond(
  1. covariant IOAdapterRequest request,
  2. Response response
)
override

Sends a Response back to the client for the given AdapterRequest.

This method is called by the Relic core after a request has been processed and a response has been generated. The adapter is responsible for translating the standard Response object into the appropriate format for the underlying communication protocol.

Implementation

@override
Future<void> respond(
  covariant final IOAdapterRequest request,
  final Response response,
) async {
  final httpResponse = request._httpRequest.response;
  await response.writeHttpResponse(httpResponse);
}