Class: Typhoeus::Response
- Inherits:
-
Object
- Object
- Typhoeus::Response
- Defined in:
- lib/typhoeus_ext/response.rb
Instance Method Summary collapse
Instance Method Details
#connection_failed? ⇒ Boolean
7 8 9 |
# File 'lib/typhoeus_ext/response.rb', line 7 def connection_failed? curl_return_code == 7 end |
#retryable_request? ⇒ Boolean
3 4 5 |
# File 'lib/typhoeus_ext/response.rb', line 3 def retryable_request? timed_out? || connection_failed? || server_error? end |
#server_error? ⇒ Boolean
11 12 13 |
# File 'lib/typhoeus_ext/response.rb', line 11 def server_error? (500..599).include?(code) end |