Class | Merb::Request |
In: |
lib/merb-core/dispatch/dispatcher.rb
lib/merb-core/dispatch/request.rb |
Parent: | Object |
METHODS | = | %w{get post put delete head options} |
env | [RW] | :api: private |
exceptions | [RW] | :api: public |
route | [RW] | :api: private |
route_params | [R] | :api: private |
Processes the return value of a deferred router block and returns the current route params for the current request evaluation
:api: private
Returns the controller object for initialization and dispatching the request.
Class: | The controller class matching the routed request, |
e.g. Posts.
:api: private
Find route using requested URI and merges route parameters (:action, :controller and named segments) into request params hash.
:api: private
Handles request routing and action dispatch.
Merb::Controller: | the controller that handled the action dispatch. |
:api: private
If @route_params is an Array, then it will be the rack response. In this case, the request is considered handled.
Boolean: | true if @route_params is an Array, false otherwise. |
:api: private
Symbol: | The name of the request method, e.g. :get. |
If the method is post, then the blocks specified in http_method_overrides will be checked for the masquerading method. The block will get the controller yielded to it. The first matching workaround wins. To disable this behavior, set http_method_overrides = []
:api: public
Mash: | All request parameters. |
The order of precedence for the params is XML, JSON, multipart, body and request string.
:api: public
String: | The URI without the query string. Strips trailing "/" and reduces duplicate "/" to a single "/". |
:api: public
(Array, Hash): | the route params for the matched route. |
If the response is an Array then it is considered a direct Rack response to be sent back as a response. Otherwise, the route_params is a Hash with routing data (controller, action, et al).
:api: private