class ConnectFailure
Raised when a CONNECT tunnel through a proxy cannot be established.
Definitions
def initialize(response)
Initialize the failure with the unsuccessful response.
Signature
-
parameter
responseProtocol::HTTP::Response The failed response from the proxy.
Implementation
def initialize(response)
super "Failed to connect: #{response.status}"
@response = response
end