From 7e1d393c38b797ec388ca8c7cce01e5e4bd45c2b Mon Sep 17 00:00:00 2001 From: shoully Date: Sat, 20 Dec 2014 06:04:09 -0800 Subject: [PATCH] Created Stopping (markdown) --- Stopping.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Stopping.md diff --git a/Stopping.md b/Stopping.md new file mode 100644 index 0000000..b1dd304 --- /dev/null +++ b/Stopping.md @@ -0,0 +1,12 @@ +You can stop the framework at any point by calling the `halt` method: + + Flight::halt(); + +You can also specify an optional HTTP status code and message: + + Flight::halt(200, 'Be right back...'); + +Calling `halt` will discard any response content up to that point. +If you want to stop the framework and output the current response, use the `stop` method: + + Flight::stop(); \ No newline at end of file