Class: Flame::Dispatcher::Request
- Inherits:
-
Rack::Request
- Object
- Rack::Request
- Flame::Dispatcher::Request
- Defined in:
- lib/flame/dispatcher/request.rb
Overview
Class for requests
Instance Method Summary collapse
-
#http_method ⇒ Object
Override HTTP-method of the request if the param ‘_method’ found.
-
#path ⇒ Object
Initialize Flame::Path.
Instance Method Details
#http_method ⇒ Object
Override HTTP-method of the request if the param ‘_method’ found
13 14 15 |
# File 'lib/flame/dispatcher/request.rb', line 13 def http_method @http_method ||= (params['_method'] || request_method).upcase.to_sym end |