Reputation: 104
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?
Upvotes: 0
Views: 325
Reputation: 406
The addDecorateBehavior field should do the trick. You could, for example, set a header:
(request, response) => { response.headers.timestamp = new Date(); }
Upvotes: 0