lib/roda/plugins/halt.rb in roda-cj-0.9.1 vs lib/roda/plugins/halt.rb in roda-cj-0.9.2

- old
+ new

@@ -20,22 +20,22 @@ # end # # Or set the response body and return: # # route do |r| - # r.halt("body') + # r.halt('body') # end # # Or set both: # # route do |r| - # r.halt(403, "body') + # r.halt(403, 'body') # end # # Or set response status, headers, and body: # # route do |r| - # r.halt(403, {'Content-Type'=>'text/csv'}, "body') + # r.halt(403, {'Content-Type'=>'text/csv'}, 'body') # end # # Note that there is a difference between provide status, headers, and body as separate # arguments and providing them as a rack response array. With a rack response array, # the values are used directly, while with 3 arguments, the headers given are merged into