Class: Response
- Inherits:
-
Object
- Object
- Response
- Defined in:
- lib/rack/app/response.rb
Class Method Summary collapse
- .not_found_for(body) ⇒ Object
- .ok ⇒ Object
- .ok_for(body) ⇒ Object
- .unprocessable_entity_for(body) ⇒ Object
Class Method Details
.not_found_for(body) ⇒ Object
11 12 13 |
# File 'lib/rack/app/response.rb', line 11 def not_found_for body Rack::Response.new body, 404 end |
.ok ⇒ Object
3 4 5 |
# File 'lib/rack/app/response.rb', line 3 def ok Rack::Response.new '', 200 end |
.ok_for(body) ⇒ Object
7 8 9 |
# File 'lib/rack/app/response.rb', line 7 def ok_for body Rack::Response.new body, 200 end |
.unprocessable_entity_for(body) ⇒ Object
15 16 17 |
# File 'lib/rack/app/response.rb', line 15 def unprocessable_entity_for body Rack::Response.new body, 422 end |