Class: HTTPX::ProxySSL

Inherits:
SSL
  • Object
show all
Defined in:
lib/httpx/plugins/proxy.rb

Constant Summary

Constants inherited from SSL

SSL::TLS_OPTIONS

Constants included from Loggable

Loggable::COLORS

Instance Attribute Summary

Attributes inherited from TCP

#addresses, #ip, #port

Instance Method Summary collapse

Methods inherited from SSL

#close, #connect, #connected?, #inspect, #protocol, #read, #scheme, #verify_hostname, #write

Methods inherited from TCP

#close, #closed?, #connect, #connected?, #inspect, #protocol, #read, #scheme, #to_io, #write

Methods included from Loggable

#log, #log_exception

Constructor Details

#initialize(tcp, request_uri, options) ⇒ ProxySSL

Returns a new instance of ProxySSL.



203
204
205
206
207
208
# File 'lib/httpx/plugins/proxy.rb', line 203

def initialize(tcp, request_uri, options)
  @io = tcp.to_io
  super(request_uri, tcp.addresses, options)
  @hostname = request_uri.host
  @state = :connected
end