respond method
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.
request
: The original AdapterRequest that this response corresponds to.response
: The Response to send.
Implementation
@override
Future<void> respond(
covariant final IOAdapterRequest request,
final Response response,
) async {
final httpResponse = request._httpRequest.response;
await response.writeHttpResponse(httpResponse);
}