Class: HTTPX::Plugins::Proxy::Socks5::SocksParser
- Inherits:
-
Object
- Object
- HTTPX::Plugins::Proxy::Socks5::SocksParser
- Includes:
- Callbacks
- Defined in:
- lib/httpx/plugins/proxy/socks5.rb
Instance Method Summary collapse
- #<<(packet) ⇒ Object
- #close ⇒ Object
- #consume ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(buffer, options) ⇒ SocksParser
constructor
A new instance of SocksParser.
- #timeout ⇒ Object
Methods included from Callbacks
Constructor Details
#initialize(buffer, options) ⇒ SocksParser
132 133 134 135 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 132 def initialize(buffer, ) @buffer = buffer @options = Options.new() end |
Instance Method Details
#<<(packet) ⇒ Object
149 150 151 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 149 def <<(packet) emit(:packet, packet) end |
#close ⇒ Object
141 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 141 def close; end |
#consume ⇒ Object
143 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 143 def consume(*); end |
#empty? ⇒ Boolean
145 146 147 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 145 def empty? true end |
#timeout ⇒ Object
137 138 139 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 137 def timeout @options.timeout[:operation_timeout] end |