Added support for capturing HTTP response headers.