-
-
Notifications
You must be signed in to change notification settings - Fork 685
feat: return body as consumable body #895
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
Conversation
* fix: accept URL origin in Agent * fix: lint * fixup Co-authored-by: Robert Nagy <ronagy@icloud.com>
|
Tests need to be fixed quite extensively so I ask for some feedback before continuing down this route. |
9a59a27 to
a181898
Compare
6913094 to
0347991
Compare
47f70df to
c056e71
Compare
|
I think this should target a |
dnlup
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this! I think it's a great improvement in usability.
mcollina
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like the concept.
|
Related: nodejs/node#39483. I'm waiting for feedback there and hopefully finalization of the API before we land this so that we can have full compatibility. |
| } | ||
|
|
||
| return this[kBody] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is almost like BodyMixin from the web standard with the small exception of how to consume as Node stream.... anyone got suggestions on how that could/should look? @szmarczak @Ethan-Arrowood @mcollina @dnlup
8298466 to
50927b9
Compare
* unref() connectTimeout * clear out the connect timeout in all cases
Change undici.request to return a Body object with various consume helpers instead of regular node stream. This aligns with recent work on quic and web streams in node core.
Change undici.request to return a Body object with
various consume helpers instead of regular node stream.
This aligns with recent work on quic and web streams in
node core.