I'd like each recorded http request & response to be timestamped (ms precision) when recording with Mountebank.
I've considerred using something like Fiddler to add the timestamp, but would rather be able to do this with Moutebank.
Any ideas?
I'd like each recorded http request & response to be timestamped (ms precision) when recording with Mountebank.
I've considerred using something like Fiddler to add the timestamp, but would rather be able to do this with Moutebank.
Any ideas?
The addDecorateBehavior field should do the trick. You could, for example, set a header:
(request, response) => { response.headers.timestamp = new Date(); }