Class: Iudex::HTTP::Test::Server

Inherits:
Fishwife::HttpServer
  • Object
show all
Defined in:
lib/iudex-http-test/server.rb

Constant Summary collapse

DEFAULT_PORT =
19292

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Server

Returns a new instance of Server.



28
29
30
31
32
# File 'lib/iudex-http-test/server.rb', line 28

def initialize( opts = {} )
  opts = { :port => DEFAULT_PORT,
           :max_threads => 20 }.merge( opts )
  super( opts )
end

Instance Method Details

#start(app = TestApp) ⇒ Object



34
35
36
# File 'lib/iudex-http-test/server.rb', line 34

def start( app = TestApp )
  super
end