Class: Rack::Handler::Thin

Class Rack::Handler::Thin < Object

(in files lib/rack/handler/thin.rb )

Rack Handler stricly to be able to use Thin through the rackup command. To do so, simply require ‘thin’ in your Rack config file and run like this

  rackup --server thin

Methods

Public Class run(app, options={}) {|server if block_given?| ...}

    # File lib/rack/handler/thin.rb, line 9
 9:       def self.run(app, options={})
10:         server = ::Thin::Server.new(options[:Host] || '0.0.0.0',
11:                                     options[:Port] || 8080,
12:                                     app)
13:         yield server if block_given?
14:         server.start
15:       end