Class: HTTPX::Plugins::Proxy::Socks4::SocksParser
- Inherits:
-
Object
- Object
- HTTPX::Plugins::Proxy::Socks4::SocksParser
- Includes:
- Callbacks
- Defined in:
- lib/httpx/plugins/proxy/socks4.rb,
sig/plugins/proxy/socks4.rbs
Instance Method Summary collapse
- #<<(packet) ⇒ void
- #close ⇒ void
- #consume ⇒ void
- #empty ⇒ Boolean
- #empty? ⇒ Boolean
-
#initialize(buffer, options) ⇒ SocksParser
constructor
A new instance of SocksParser.
Methods included from Callbacks
#callbacks, #callbacks_for?, #emit, #on, #once
Constructor Details
#initialize(buffer, options) ⇒ SocksParser
Returns a new instance of SocksParser.
90 91 92 93 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 90 def initialize(buffer, ) @buffer = buffer @options = end |
Instance Method Details
#<<(packet) ⇒ void
This method returns an undefined value.
103 104 105 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 103 def <<(packet) emit(:packet, packet) end |
#close ⇒ void
This method returns an undefined value.
95 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 95 def close; end |
#consume ⇒ void
This method returns an undefined value.
97 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 97 def consume(*); end |
#empty ⇒ Boolean
27 |
# File 'sig/plugins/proxy/socks4.rbs', line 27
def empty: () -> bool
|
#empty? ⇒ Boolean
99 100 101 |
# File 'lib/httpx/plugins/proxy/socks4.rb', line 99 def empty? true end |