Class: HTTPX::Plugins::Proxy::Socks5::SocksParser
- Inherits:
-
Object
- Object
- HTTPX::Plugins::Proxy::Socks5::SocksParser
- Includes:
- Callbacks
- Defined in:
- lib/httpx/plugins/proxy/socks5.rb,
sig/plugins/proxy/socks5.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.
142 143 144 145 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 142 def initialize(buffer, ) @buffer = buffer @options = end |
Instance Method Details
#<<(packet) ⇒ void
This method returns an undefined value.
155 156 157 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 155 def <<(packet) emit(:packet, packet) end |
#close ⇒ void
This method returns an undefined value.
147 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 147 def close; end |
#consume ⇒ void
This method returns an undefined value.
149 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 149 def consume(*); end |
#empty ⇒ Boolean
33 |
# File 'sig/plugins/proxy/socks5.rbs', line 33
def empty: () -> bool
|
#empty? ⇒ Boolean
151 152 153 |
# File 'lib/httpx/plugins/proxy/socks5.rb', line 151 def empty? true end |