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.
Methods included from Callbacks
Constructor Details
#initialize(buffer, options) ⇒ SocksParser
Returns a new instance of SocksParser.
110 111 112 113 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 110 def initialize(buffer, ) @buffer = buffer @options = Options.new() end |
Instance Method Details
#<<(packet) ⇒ Object
123 124 125 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 123 def <<(packet) emit(:packet, packet) end |
#close ⇒ Object
115 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 115 def close; end |
#consume ⇒ Object
117 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 117 def consume(*); end |
#empty? ⇒ Boolean
119 120 121 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 119 def empty? true end |