const stream = new ReadableStream({/* ... */});
const request = new Request("/upload", {
method: "POST",
body: stream,
duplex: "half", // Required for streaming requests
});
console.log(request.duplex); // "half"Request: duplex property / notebook
Request: duplex property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.