Sha256: 27efd3792698737a0750fa2addd13b4a753b39b4345c5763115baa564e19e66a

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 Bytes

Contents

module Thin
  class CallbackRackHandler
    def self.run(app, options)
      options[:signals] = false
      server = ::Thin::Server.new(options[:Host] || '0.0.0.0',
                                  options[:Port] || 8080,
                                  app,
                                  options)
      yield server if block_given?
      server.start
    end
  end
end

Rack::Handler.register 'thin-with-callbacks', Thin::CallbackRackHandler

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
big_brother-0.8.8.1 lib/thin/callback_rack_handler.rb
big_brother-0.8.8 lib/thin/callback_rack_handler.rb
big_brother-0.8.7 lib/thin/callback_rack_handler.rb
big_brother-0.6.8 lib/thin/callback_rack_handler.rb