class Eye::Http
Constants
- Router
- VERSION
Attributes
host[R]
port[R]
server[R]
Public Class Methods
new(host, port)
click to toggle source
# File lib/eye-http/http.rb, line 13 def initialize(host, port) @host = host @port = port.to_i @router = Router end
Public Instance Methods
start()
click to toggle source
# File lib/eye-http/http.rb, line 19 def start stop @server = Reel::Rack::Server.new(@router, :Host => @host, :Port => port) end
stop()
click to toggle source
# File lib/eye-http/http.rb, line 24 def stop if @server @server.terminate @server = nil end end