Method: Capybara::Session#response_headers

Defined in:
lib/capybara/session.rb

#response_headersHash<String, String>

Returns a hash of response headers. Not supported by all drivers (e.g. Selenium).

Returns:

  • (Hash<String, String>)

    A hash of response headers.


176
177
178
# File 'lib/capybara/session.rb', line 176

def response_headers
  driver.response_headers
end