Class: Rackup::Handler::WEBrick::Server

Inherits:
WEBrick::HTTPServer
  • Object
show all
Defined in:
lib/rackup/handler/webrick.rb

Overview

A WEBrick HTTPServer subclass that invokes the Rack app directly, bypassing the mount table and default OPTIONS * handling.

Instance Method Summary collapse

Constructor Details

#initialize(app, config) ⇒ Server

Returns a new instance of Server.



22
23
24
25
# File 'lib/rackup/handler/webrick.rb', line 22

def initialize(app, config)
  super(config)
  @handler = Handler::WEBrick.new(self, app)
end

Instance Method Details

#service(req, res) ⇒ Object



27
28
29
# File 'lib/rackup/handler/webrick.rb', line 27

def service(req, res)
  @handler.service(req, res)
end