Method: #rack
- Defined in:
- lib/falcon/environments/rack.rb
#rack ⇒ Object
A rack application environment.
Derived from #application.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/falcon/environments/rack.rb', line 31 environment(:rack, :application) do # The rack configuration path. # @attribute [String] config_path {::File.("config.ru", root)} # Whether to enable the application layer cache. # @attribute [String] cache false # The middleware stack for the rack application. # @attribute [Protocol::HTTP::Middleware] middleware do app, _ = ::Rack::Builder.parse_file(config_path) ::Falcon::Server.middleware(app, verbose: verbose, cache: cache ) end end |