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.



179
180
181
# File 'lib/capybara/session.rb', line 179

def response_headers
  driver.response_headers
end