Class: HTTPX::ProxySSL

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

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?, #can_disconnect?, #close, #closed?, #connect, #connect_attempt_time_left, #connected?, #inspect, #next_address!, #protocol, #read, #socket, #to_io, #write

Methods included from Loggable

#log, #log_exception, log_identifiers

Constructor Details

#initialize(tcp, request_uri, options) ⇒ ProxySSL

Returns a new instance of ProxySSL.



376
377
378
379
380
381
382
# File 'lib/httpx/plugins/proxy.rb', line 376

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_io ⇒ TCP, SSL (readonly)

Returns the value of attribute proxy_io.

Returns:



374
375
376
# File 'lib/httpx/plugins/proxy.rb', line 374

def proxy_io
  @proxy_io
end