class CSGOLytics::HTTPServer

Public Class Methods

new(backend, port) click to toggle source
# File lib/csgolytics/http_server.rb, line 28
def initialize(backend, port)
  @http = WEBrick::HTTPServer.new(:Port => port)
  @http.mount "/", CSGOLytics::HTTPServlet, backend
end

Public Instance Methods

listen() click to toggle source
# File lib/csgolytics/http_server.rb, line 33
def listen
  @http.start
end
shutdown() click to toggle source
# File lib/csgolytics/http_server.rb, line 37
def shutdown
  @http.shutdown
end