sendResponse
Summary
Sends a Response to the client using a Node.js
http.ServerResponse/http2.Http2ServerResponse
object.
Signature
function sendResponse(
res:
| ServerResponse<IncomingMessage>
| Http2ServerResponse<Http2ServerRequest>,
response: Response,
): Promise<void>;
Params
res
The server response object
response
The response to send