module Middleman::CoreExtensions::Request::InstanceMethods

def call!(env)

Parameters:
  • env () -- Rack environment
def call!(env)
  self.env = env
  # Store environment, request and response for later
  self.req = req = ::Rack::Request.new(env)
  self.res = res = ::Rack::Response.new
  puts "== Request: #{env["PATH_INFO"]}" if logging?
  # Catch :halt exceptions and use that response if given
  catch(:halt) do
    process_request(env, req, res)
    res.status = 404
    res.finish
  end
end