mswjs / interceptors

Low-level network interception library.
https://npm.im/@mswjs/interceptors
MIT License
523 stars 118 forks source link

Nock compatibility #575

Open mikicho opened 1 month ago

mikicho commented 1 month ago

Transfer Encoding @mikicho

support transfer-encoding: chunked

https://github.com/mswjs/interceptors/pull/596

preemtive timeout

It not relevant for fetch. We should consider if/how we want to support this for httpClient. Nice feature.

Headers

Recorder

kettanaito commented 1 month ago

Thanks for putting this down, @mikicho! Let's split these between ourselves and finish the interceptor. Please, if you are working on a task, put your GitHub handle next to it so I'd know, and I will do the same.

As usual, we can start with adding a test for the thing, verifying if it's not passing already, and then opening pull requests to #515. Does that sound good to you?

kettanaito commented 1 month ago

socket emits connect and secureConnect

This should already be the case:

Not sure if we have tests for this, may be indirectly tested and still missing test cases just for the connect and secureConnect events.

Edit: I'm assigning this to myself, will ensure those events are emitted correctly.