remix/node-fetch-server · FunctionView Source
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>;
Parameters
res
The server response object
response
The response to send