I am using webdrivermob with nightwatch.js. Currently I am able to get the HAR file created using webdrivermob but it does not contain request and response headers which are vaiable through setCaptureHeaders(true) and setCaptureContent(true) functions of browsermob-proxy.
So how could I set these functions so that I can receive the HAR file with headers? Something like shown in the image.

I am using webdrivermob with nightwatch.js. Currently I am able to get the HAR file created using webdrivermob but it does not contain request and response headers which are vaiable through setCaptureHeaders(true) and setCaptureContent(true) functions of browsermob-proxy.

So how could I set these functions so that I can receive the HAR file with headers? Something like shown in the image.