HTTP Request Recorder
records incoming HTTP calls
For black-box testing of network services.
In your test suite, set up a listener:
HttpRecorder = require('record-http') listener = new HttpRecorder().listen(7777)
Now this instance records all calls made to port 7777. Access the recorded calls through:
More details around recording calls are here. You can reset the recorded calls (and keep listening for more) via
An example is given here. Finally, close your instance through
More details around closing are here.
See our developer guidelines