From 492f67b530432d30b266604ef6f186ea9e270e28 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 8 May 2014 03:11:00 +0200 Subject: [PATCH] more on request lifecycle --- developer_manual/app/request.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/developer_manual/app/request.rst b/developer_manual/app/request.rst index be4579aa4..f10f4670c 100644 --- a/developer_manual/app/request.rst +++ b/developer_manual/app/request.rst @@ -49,4 +49,6 @@ The :doc:`container` is the place where you define all of your classes and in pa Controller ---------- -The :doc:`controller ` contains the code that you actually want to run after a request has come in. Think of it like a callback that is executed if everything before went fine. +The :doc:`controller ` contains the code that you actually want to run after a request has come in. Think of it like a callback that is executed if everything before went fine. + +The controller returns a response which is then run through the middleware again (afterController and beforeOutput hooks are being run), HTTP headers are being set and the response's render method is being called and printed.