-
Notifications
You must be signed in to change notification settings - Fork 545
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
undici - next #2835
Comments
With |
It's methods on |
Some of the above we can probably land on main. |
This seems interesting, in theory, the HTTP response is split into three parts, the status line, headers and body; maybe we can follow this line? |
it's actually headers first, then status and then body. |
I'm working on the dump to interceptor, but I'm curious what do you have in mind for that API? Also removing the legacy interceptor concepts from |
cc: @ronag |
I will sort the next branch sometime in the next two weeks. Just open or against current state. |
Something like that? |
It is also necessary to move the decompression of compressed data (gzip, deflate, br, zstd) into a separate interceptor |
This plans need to be redone. |
Creating a next branch etc is maybe not something I should be in charge of. I believe we should do the following things in next semvar major:
And that's it. I'll probably fork and apply things there for my own needs. Happy to help if someone else takes charge. |
|
I can help with this if support is needed 👍 |
Yeah, let's add them to next 👍 |
@metcoder95 Just to be clear. I won't be doing anything further with the next branch despite previous indications. Feel free to do whatever you want with it. I'm doing my stuff on a fork. |
Sure thing, no worries 👍 |
@ronag So basically, we parse the headers multiple times, in each handler that needs headers Thanks |
This can solves with the following pattern that I've been using:
and then make sure to pass the 4th argument to any sub handlers. Not great though. I would also prefer to have the 2nd arg already pre-parsed. |
Any specific reason why we added them unparsed? |
TODO:
throwOnError
to interceptor #3275Readable.setEncoding
issue (client.request throws Error with setEncoding #1125 (comment))[x] non-keep alive connections are not data safe[ ] Should we splitonHeaders
into more fine-grained hooks? i.e.onHeader(key, val)
andonStatus(code, message)
?Refs: #2722
The text was updated successfully, but these errors were encountered: