Class: Rackup::Handler::WEBrick::Server
- Inherits:
-
WEBrick::HTTPServer
- Object
- WEBrick::HTTPServer
- Rackup::Handler::WEBrick::Server
- 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
-
#initialize(app, config) ⇒ Server
constructor
A new instance of Server.
- #service(req, res) ⇒ Object
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 |