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