class Response
Public Class Methods
not_found_for(body)
click to toggle source
# File lib/rack/app/response.rb, line 11 def not_found_for body Rack::Response.new body, 404 end
ok()
click to toggle source
# File lib/rack/app/response.rb, line 3 def ok Rack::Response.new '', 200 end
ok_for(body)
click to toggle source
# File lib/rack/app/response.rb, line 7 def ok_for body Rack::Response.new body, 200 end
unprocessable_entity_for(body)
click to toggle source
# File lib/rack/app/response.rb, line 15 def unprocessable_entity_for body Rack::Response.new body, 422 end