/** * The entry point from the Recess with a Response to be rendered. * Delegates the two steps in rendering a view: 1) Send Headers, 2) Render Body * * @param Response $response */ public final function respondWith(Response $response) { if (!headers_sent()) { $this->sendHeadersFor($response); } if (ResponseCodes::canHaveBody($response->code) && !$response instanceof ForwardingResponse) { $this->response = $response; $this->render($response); } }