Sha256: 48b0e4960102678e57c6a7cc68930db63a21c3d736b9b399c161e59e08e2770e
Contents?: true
Size: 417 Bytes
Versions: 4
Compression:
Stored size: 417 Bytes
Contents
class Server < EM::Connection include EM::HttpServer def initialize(bot) @bot = bot end def post_init super no_environment_strings end def process_http_request if @http_request_method == "POST" @bot.handlers.dispatch(:api_callback, nil, @http_post_content) end response = EM::DelegatedHttpResponse.new(self) response.status = 200 response.send_response end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cogbot-0.1.1 | lib/cogbot/server.rb |
cogbot-0.1.0 | lib/cogbot/server.rb |
cogbot-0.0.3 | lib/cogbot/server.rb |
cogbot-0.0.2 | lib/cogbot/server.rb |