Exception: Async::HTTP::Proxy::ConnectFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/async/http/proxy.rb

Overview

Raised when a CONNECT tunnel through a proxy cannot be established.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



25
26
27
# File 'lib/async/http/proxy.rb', line 25

def response
  @response
end