Sha256: e2bf13c1fefbb9b97817c8eacf51ccf09ef3c228f53146be09db0ea2895e0573
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
require 'rapid_runty/router/base_route' require 'rapid_runty/controller/base_controller' module RapidRunty ## # Main framework Application class. Entry point for all requests. # # Example: # # class Application < RapidRunty::Application # end class Application ## # Returns a rack compatible response. # # Retrieves the controller and action from request URL making a new # controller and send it to the action. # # @param env [Hash] Rack environment Hash that includes CGI-like headers # # @return [status, {headers}, [response]] def call(env) request = Rack::Request.new(env) response = Rack::Response.new handle(env, request, response) response.finish end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapid_runty-0.1.3 | lib/rapid_runty/application.rb |