Class: HTTPX::ProxyChannel
- Defined in:
- lib/httpx/plugins/proxy.rb
Direct Known Subclasses
HTTPX::Plugins::Proxy::HTTP::HTTPProxyChannel, HTTPX::Plugins::Proxy::Socks4::Socks4ProxyChannel, HTTPX::Plugins::Proxy::Socks5::Socks5ProxyChannel
Constant Summary
Constants inherited from Channel
Constants included from Registry
Instance Method Summary collapse
-
#initialize(io, parameters, options, &blk) ⇒ ProxyChannel
constructor
A new instance of ProxyChannel.
- #match? ⇒ Boolean
- #to_io ⇒ Object
Methods inherited from Channel
by, #call, #close, #interests, #reset, #send, #upgrade_parser
Methods included from Callbacks
Methods included from Loggable
Methods included from Registry
Constructor Details
#initialize(io, parameters, options, &blk) ⇒ ProxyChannel
85 86 87 88 |
# File 'lib/httpx/plugins/proxy.rb', line 85 def initialize(io, parameters, , &blk) super(io, , &blk) @parameters = parameters end |
Instance Method Details
#match? ⇒ Boolean
90 91 92 |
# File 'lib/httpx/plugins/proxy.rb', line 90 def match?(*) true end |
#to_io ⇒ Object
94 95 96 97 |
# File 'lib/httpx/plugins/proxy.rb', line 94 def to_io transition(:connecting) if @state == :idle @io.to_io end |