Class: Flame::Dispatcher::Request

Inherits:
Rack::Request
  • Object
show all
Defined in:
lib/flame/dispatcher/request.rb

Overview

Class for requests

Instance Method Summary collapse

Instance Method Details

#http_methodObject

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

#pathObject

Initialize Flame::Path



8
9
10
# File 'lib/flame/dispatcher/request.rb', line 8

def path
	@path ||= Flame::Path.new path_info
end