A response body is a consumable stream. Choose how to decode it before handing it to several readers.
Worked example
import { Blob } from "node:buffer";
console.log(await new Response("message").text());Result
messageImplementation notes
A streamed response may be large. If only the first records are needed, reading the full text first can erase the memory advantage of streaming.
Try it yourself
Read the same response twice and compare that with reading a clone.
Open the Node.js example →Editorial date March 7, 2026 · Published December 6, 2026