Class: HTTPX::ProxySSL
- Defined in:
- lib/httpx/plugins/proxy.rb,
sig/plugins/proxy.rbs
Constant Summary
Constants inherited from SSL
Constants included from Loggable
Loggable::COLORS, Loggable::USE_DEBUG_LOG
Instance Attribute Summary collapse
-
#proxy_io ⇒ TCP, SSL
readonly
Returns the value of attribute proxy_io.
Attributes inherited from SSL
Attributes inherited from TCP
#addresses, #interests, #ip, #port, #state
Instance Method Summary collapse
-
#initialize(tcp, request_uri, options) ⇒ ProxySSL
constructor
A new instance of ProxySSL.
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, ) @proxy_io = tcp @io = tcp.to_io super(request_uri, tcp.addresses, ) @hostname = request_uri.host @state = :connected end |