Class: Typhoeus::Response
- Inherits:
-
Object
- Object
- Typhoeus::Response
- Defined in:
- lib/capybara/typhoeus/browser.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
9 10 11 |
# File 'lib/capybara/typhoeus/browser.rb', line 9 def [](key) headers[key] end |
#redirect? ⇒ Boolean
3 4 5 |
# File 'lib/capybara/typhoeus/browser.rb', line 3 def redirect? [301, 302, 303, 307].include? code end |