intercept-response
Collects writes to Node.js http.ServerResponse and resolves to node-fetch Response
interceptResponse(res)
- res: http.ServerResponse - Node.js request object that you want to intercept (response does not get sent)
- returns Promise<Response> - resolves to node-fetch
Response
that corresponds to the written response
const interceptResponse = ; const http = ; http;