-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Nock compatibility #575
Comments
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? |
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 Edit: I'm assigning this to myself, will ensure those events are emitted correctly. |
Added implementation for following redirect responses in fetch: #627. |
@mikicho, can you elaborate on this scenario, please? Nock itself works by patching Do you mean a scenario like this? http.get()
interceptor.on('request', ({ controller }) => controller.respondWith(new Response())) |
This is more of a |
I lack enough familiarity with Nock to say this for certain, but applying/removing mocking in a middle of a request sounds like a bad idea. Imo, the request must be handled according to the interception state at the time of being issued. |
should be safe to call in the middle of a requestconnect
andsecureConnect
events @kettanaito (edge case - feat(ClientRequest): use net.Socket interceptor #515 (comment))Expect: 100-continue
triggers continue event (fix(ClientRequest): support 100 continue flow #599) @mikichoTransfer Encoding @mikicho
support
transfer-encoding: chunked
#596
preemtive timeout
We decided to remove this feature from Nock. It not relevant for
fetch
.We should consider if/how we want to support this for
httpClient
. this is a nice feature.Headers
Recorder
The text was updated successfully, but these errors were encountered: