Class: Fluent::Plugin::GroongaInput::GQTPInput::RequestParser

Inherits:
GQTP::Parser
  • Object
show all
Defined in:
lib/fluent/plugin/in_groonga.rb

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ RequestParser

Returns a new instance of RequestParser.



424
425
426
427
428
# File 'lib/fluent/plugin/in_groonga.rb', line 424

def initialize(input)
  super()
  @input = input
  initialize_command_parser
end

Instance Method Details

#closeObject



438
439
440
# File 'lib/fluent/plugin/in_groonga.rb', line 438

def close
  @command_parser.finish
end

#on_body(chunk) ⇒ Object



430
431
432
# File 'lib/fluent/plugin/in_groonga.rb', line 430

def on_body(chunk)
  @command_parser << chunk
end

#on_completeObject



434
435
436
# File 'lib/fluent/plugin/in_groonga.rb', line 434

def on_complete
  @command_parser << "\n"
end