Missing Request constructor duplex option #31735
Labels
area: Fetch/XMLHttpRequest
Content:WebAPI
Web API docs
goal: completeness
(Experiment label) Issues about content missing important/relevant details.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Request/Request
What specific section or headline is this issue about?
Parameters
What information was incorrect, unhelpful, or incomplete?
The spec has a
duplex
option, but it's missing from the pageWhat did you expect to see?
A note about the parameter, and that it needs to be set to
"half"
when using aReadableStream
body.It would also be nice to have a row for browser compatibility.
Do you have any supporting links, references, or citations?
Spec: https://fetch.spec.whatwg.org/#request-class
Chrome docs (showing how to do half-duplex fetch): https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests
Related web platform test: https://wpt.fyi/results/fetch/api/request/request-init-stream.any.html?label=master&label=experimental&aligned&q=request-init-stream
Do you have anything more you want to share?
The
Request
class itself also has aduplex
get-only property, so main page (https://developer.mozilla.org/en-US/docs/Web/API/Request) is affected and an instance property page is missing tooMDN metadata
Page report details
en-us/web/api/request
The text was updated successfully, but these errors were encountered: