class Groonga::Client::Protocol::HTTP::Coolio::GroongaHTTPClient

Public Class Methods

new(socket, callback) click to toggle source
Calls superclass method
# File lib/groonga/client/protocol/http/coolio.rb, line 44
def initialize(socket, callback)
  super(socket)
  @body = ""
  @callback = callback
  @finished = false
end

Public Instance Methods

finished?() click to toggle source
# File lib/groonga/client/protocol/http/coolio.rb, line 51
def finished?
  @finished
end
on_body_data(data) click to toggle source
# File lib/groonga/client/protocol/http/coolio.rb, line 55
def on_body_data(data)
  @body << data
end
on_close() click to toggle source
Calls superclass method
# File lib/groonga/client/protocol/http/coolio.rb, line 63
def on_close
  super
  @finished = true
end
on_request_complete() click to toggle source
# File lib/groonga/client/protocol/http/coolio.rb, line 59
def on_request_complete
  @callback.call(@body)
end