v0.6.0
Features
- Adds the event emitter to listen to internal events. Supports the
response
event fired upon any mocked/original response.
import { RequestInterceptor } from 'node-request-interceptor'
const interceptor = new RequestInterceptor(interceptors)
interceptor.on('response', (req, res) => {})
Note that you cannot affect
req
/res
in theresponse
event.