Class: Restfulness::Dispatchers::Rack
- Inherits:
-
Restfulness::Dispatcher
- Object
- Restfulness::Dispatcher
- Restfulness::Dispatchers::Rack
- Defined in:
- lib/restfulness/dispatchers/rack.rb
Instance Attribute Summary
Attributes inherited from Restfulness::Dispatcher
Instance Method Summary collapse
Methods inherited from Restfulness::Dispatcher
Constructor Details
This class inherits a constructor from Restfulness::Dispatcher
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/restfulness/dispatchers/rack.rb', line 7 def call(env) # Make sure we understand the request request = prepare_request(env) # Prepare a suitable response response = Response.new(request) response.run [response.status, response.headers, [response.payload || ""]] end |