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, Loggable::USE_DEBUG_LOG

Instance Attribute Summary collapse

Attributes inherited from SSL

#ssl_session

Attributes inherited from TCP

#addresses, #interests, #ip, #port, #state

Instance Method Summary collapse

Methods inherited from SSL

#can_verify_peer?, #connect, #connected?, #protocol, #session_new_cb, #ssl_session_expired?, #try_ssl_connect, #verify_hostname

Methods inherited from TCP

#add_addresses, #addresses?, #close, #closed?, #connect, #connected?, #inspect, #protocol, #read, #socket, #to_io, #write

Methods included from Loggable

#log, #log_exception, #log_redact

Constructor Details

#initialize(tcp, request_uri, options) ⇒ ProxySSL

Returns a new instance of ProxySSL.



341
342
343
344
345
346
347
# File 'lib/httpx/plugins/proxy.rb', line 341

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

Instance Attribute Details

#proxy_ioObject (readonly)

Returns the value of attribute proxy_io.



339
340
341
# File 'lib/httpx/plugins/proxy.rb', line 339

def proxy_io
  @proxy_io
end