123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, WEBrick::HTTPServer
Instance Chain:
self, WEBrick::HTTPServer
Inherits: WEBrick::HTTPServer
  • Object
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.

Class Method Summary

Instance Method Summary

Constructor Details

.new(app, config) ⇒ Server

[ GitHub ]

  
# 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)

[ GitHub ]

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

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