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?, #build_socket, #can_disconnect?, #close, #closed?, #connect, #connected?, #do_transition, #inspect, #log_transition_state, #protocol, #read, #socket, #to_io, #transition, #try_connect, #write

Methods included from Loggable

#log, #log_exception, log_identifiers, #log_redact, #log_redact_body, #log_redact_headers

Constructor Details

#initialize(tcp, request_uri, options) ⇒ ProxySSL

Returns a new instance of ProxySSL.



356
357
358
359
360
361
362
# File 'lib/httpx/plugins/proxy.rb', line 356

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_ioTCP, SSL (readonly)

Returns the value of attribute proxy_io.

Returns:



354
355
356
# File 'lib/httpx/plugins/proxy.rb', line 354

def proxy_io
  @proxy_io
end