You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
Latest Chrome browser requires setting duplex: "half" flag for the construction of all requests with a streaming body:
However this option does not seem to exist in the RequestInit interface in lib.dom.d.ts, so users cannot construct a Request object with a ReadableStream body without causing an error when running in Chrome.
Currently the only workaround for this issue is to cast the RequestInit object to any, but it is not considered to be a proper solution.
constbody: ReadableStream<any> = ...
const request = new Request("https://example.com/", {body: body,method: "POST",duplex: "half"} as any);
The text was updated successfully, but these errors were encountered:
Acknowledgement
Comment
Latest Chrome browser requires setting

duplex: "half"
flag for the construction of all requests with a streaming body:However this option does not seem to exist in the
RequestInit
interface inlib.dom.d.ts
, so users cannot construct aRequest
object with aReadableStream
body without causing an error when running in Chrome.Currently the only workaround for this issue is to cast the
RequestInit
object toany
, but it is not considered to be a proper solution.The text was updated successfully, but these errors were encountered: