respondWith

The respondWith() method of allows you to provide a promise for a Response yourself.

MDN Reference