Results 60 comments of hexchain

Cc @kornelski, the original library author, please also take a look if you are interested. Thanks!

@rbuckton, thanks for approving! I have a question though: the updated types in this PR targets upstream release v4.2.0, which is still beta. I've set the version number to `4.1.9999`...

There are a few changes I'd like to see before merging.

Thanks for the suggestion, but I don't think that is what I wanted. An example might make it clear: ```es6 import process from 'node:process'; import { Worker, isMainThread, threadId }...

I've pushed a different fix as discussed in https://github.com/nodejs/undici/pull/4390#discussion_r2259309353. Please take a look, thanks!

Gentle ping. May I have some reviews again? The latest change only touches `fetch` and not (Un)wrapHandlers, so no changes to existing interceptor/handler behaviors. Duplicate headers are processed mostly in...

@metcoder95 By "interceptor" do you mean Wrap/UnwrapHandler? There is (almost) no interceptor involved in the original reproducer.

I believe that was also the very first iteration of this PR. I'll try to summarize the situation and hopefully uncover a clear path forward. The issue happens because the...

I took a stab at this by changing `WrapHandler`. Another possible fix is to modify `httpNetworkFetch->dispatch->onHeaders` instead. Please let me know if that is preferred.

Arrays are fine for "parsed" headers of type `Record`, but maybe not for "raw" header. This issue happens because an array appeared in a "raw" header, e.g.: ``` [key: Buffer,...