Class: HTTPX::ProxySSL
Constant Summary
Constants inherited from SSL
Constants included from Loggable
Loggable::COLORS, Loggable::USE_DEBUG_LOG
Instance Attribute Summary collapse
-
#proxy_io ⇒ Object
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?, #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, ) @proxy_io = tcp @io = tcp.to_io super(request_uri, tcp.addresses, ) @hostname = request_uri.host @state = :connected end |
Instance Attribute Details
#proxy_io ⇒ Object (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 |