class Responder
class << self
def call(env)
req = ::Rack::Request.new(env)
instance = new(req)
instance.call
instance.to_rack_array
end
end
attr_reader :request, :params, :headers
def initialize(req)
@request = req
@params = req.params
@headers = default_response_headers
end
def call; end
def to_rack_array
[http_response_code, http_response_headers, http_response_body]
end
end