Class: Fluent::Plugin::GroongaInput::GQTPInput::RequestParser
- Inherits:
-
GQTP::Parser
- Object
- GQTP::Parser
- Fluent::Plugin::GroongaInput::GQTPInput::RequestParser
- Defined in:
- lib/fluent/plugin/in_groonga.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(input) ⇒ RequestParser
constructor
A new instance of RequestParser.
- #on_body(chunk) ⇒ Object
- #on_complete ⇒ Object
Constructor Details
#initialize(input) ⇒ RequestParser
Returns a new instance of RequestParser.
436 437 438 439 440 |
# File 'lib/fluent/plugin/in_groonga.rb', line 436 def initialize(input) super() @input = input initialize_command_parser end |
Instance Method Details
#close ⇒ Object
450 451 452 |
# File 'lib/fluent/plugin/in_groonga.rb', line 450 def close @command_parser.finish end |
#on_body(chunk) ⇒ Object
442 443 444 |
# File 'lib/fluent/plugin/in_groonga.rb', line 442 def on_body(chunk) @command_parser << chunk end |
#on_complete ⇒ Object
446 447 448 |
# File 'lib/fluent/plugin/in_groonga.rb', line 446 def on_complete @command_parser << "\n" end |