Permalink
Browse files

More 'halt' doc

  • Loading branch information...
1 parent b90d00c commit fbbd822752e1bef86e35f29d6692ee84312f6dae @sr sr committed Dec 19, 2009
Showing with 10 additions and 2 deletions.
  1. +10 −2 README.rdoc
View
@@ -311,14 +311,22 @@ To immediately stop a request within a filter or route use:
halt
-You can also specify a body when halting ...
+You can also specify the status when halting ...
+
+ halt 410
+
+Or the body ...
halt 'this will be the body'
-Or set the status and body ...
+Or both ...
halt 401, 'go away!'
+With headers ...
+
+ halt 402, {'Content-Type' => 'text/plain'}, 'revenge'
+
== Passing
A route can punt processing to the next matching route using <tt>pass</tt>:

0 comments on commit fbbd822

Please sign in to comment.