3 ms·
To expand on that, when you invoke fetch() and get a Response object back, that object is returned as soon as response headers have been received; it does not w
by kentonv 9y ago
To expand on that, when you invoke fetch() and get a Response object back, that object is returned as soon as response headers have been received; it does not wait for the body. The Response object contains a ReadableStream from which you can read the body, but if you instead pass the response directly to event.respondWith(), then it will stream right back out to the client.