import { fetch } from "undici"; const data = { async *[Symbol.asyncIterator]() { yield "hello"; yield "world"; }, }; (async () => { await fetch("https://example.com", { body: data, method: 'POST' }); })();