Sha256: 49315cc5756687031b474dc2924c4b58e84ebe9630211e40f3b2fb3bf45cf6ea
Contents?: true
Size: 506 Bytes
Versions: 14
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true require 'rainbows' module Rack module Handler class Rainbows def self.run(app, **options) rainbows_options = { listeners: ["#{options[:Host]}:#{options[:Port]}"], worker_processes: 1, timeout: 30, config_file: ::File.expand_path('rainbows.conf', __dir__) } ::Rainbows::HttpServer.new(app, rainbows_options).start.join end end register :rainbows, ::Rack::Handler::Rainbows end end
Version data entries
14 entries across 14 versions & 3 rubygems