Add option to capture custom response headers

Previously it was only possible to capture custom request headers.