0

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?

grae22
  • 104
  • 11

1 Answers1

0

The addDecorateBehavior field should do the trick. You could, for example, set a header:

(request, response) => { response.headers.timestamp = new Date(); }

bbyars
  • 406
  • 3
  • 3
  • Thanks, but I believe this will take the timestamp at 'playback' and not at the time of 'recording'? – grae22 Feb 25 '19 at 13:10