Sha256: 779d2bb3b321baf7e564870312cd7a2ad22c752c600e06273c7c07d60e27196d
Contents?: true
Size: 639 Bytes
Versions: 3
Compression:
Stored size: 639 Bytes
Contents
# frozen_string_literal: true require "hanami" require "rack" module Hanami # Rack compatible server. # # It is run with: # # `bundle exec hanami server` # # It runs the app, by using the server specified in your `Gemfile` # (eg. Puma or Unicorn). # # @since 0.8.0 # @api private class Server < ::Rack::Server # Primarily this removes the ::Rack::Chunked middleware # which is the cause of Safari content-length bugs. # # @since 0.8.0 def middleware mw = ::Hash.new { |e, m| e[m] = [] } mw["development"].concat([::Rack::ShowExceptions, ::Rack::Lint]) mw end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.beta2 | lib/hanami/server.rb |
hanami-2.0.0.beta1.1 | lib/hanami/server.rb |
hanami-2.0.0.beta1 | lib/hanami/server.rb |