Exception: Async::HTTP::Proxy::ConnectFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Async::HTTP::Proxy::ConnectFailure
- Defined in:
- lib/async/http/proxy.rb
Overview
Raised when a CONNECT tunnel through a proxy cannot be established.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ConnectFailure
constructor
Initialize the failure with the unsuccessful response.
Constructor Details
#initialize(response) ⇒ ConnectFailure
Initialize the failure with the unsuccessful response.
20 21 22 23 |
# File 'lib/async/http/proxy.rb', line 20 def initialize(response) super "Failed to connect: #{response.status}" @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
25 26 27 |
# File 'lib/async/http/proxy.rb', line 25 def response @response end |