Skip to content

#duplex is missing from RequestInit #1483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
erunion opened this issue Jan 23, 2023 · 3 comments · May be fixed by #1729
Open

#duplex is missing from RequestInit #1483

erunion opened this issue Jan 23, 2023 · 3 comments · May be fixed by #1729

Comments

@erunion
Copy link

erunion commented Jan 23, 2023

The Fetch WG introduced a new duplex property to RequestInit1 back in July that undici is now abiding by when making payload requests with a ReadableStream2. They have added this new duplex property into their own RequestInit types, but as this is now a part of the core fetch specification it should be included here.

https://fetch.spec.whatwg.org/#request-class

Footnotes

  1. https://github.com/microsoft/TypeScript-DOM-lib-generator

  2. https://github.com/nodejs/node/issues/46221

@haukepribnow
Copy link

Would this really be as easy to close as only removing this line?

@Bashamega
Copy link
Contributor

That is correct @haukepribnow

@Bashamega
Copy link
Contributor

The reason #1729 wasn't merged and we removed this type is that it is only supported by Blink, and in order for a type to be added, it needs to be supported by at least two major browser engines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants