Class: HTTPX::Plugins::Proxy::Socks4::SocksParser
- Inherits:
-
Object
- Object
- HTTPX::Plugins::Proxy::Socks4::SocksParser
- Includes:
- Callbacks
- Defined in:
- lib/httpx/plugins/proxy/socks4.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.
66 67 68 69 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 66 def initialize(buffer, ) @buffer = buffer = Options.new() end |
Instance Method Details
#<<(packet) ⇒ Object
79 80 81 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 79 def <<(packet) emit(:packet, packet) end |
#close ⇒ Object
71 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 71 def close; end |
#consume ⇒ Object
73 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 73 def consume(*); end |
#empty? ⇒ Boolean
75 76 77 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 75 def empty? true end |