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