Deno.RequestEvent.respondWith - Deno documentation
method Deno.RequestEvent.respondWith
RequestEvent.respondWith(r: Response | PromiseLike<Response>): Promise<void>

The method to be used to respond to the event. The response needs to either be an instance of Response or a promise that resolves with an instance of Response.

When the response is successfully processed then the promise returned will be resolved. If there are any issues with sending the response, the promise will be rejected.

Parameters

r: Response | PromiseLike<Response>

Return Type

Promise<void>