Each Yee application instance has one response object. The response object is an abstraction of your Yee application's HTTP response that is returned to the HTTP client. Although each Yee application includes a default response object, the
\Yee\Http\Response class is idempotent; you may instantiate the class at will (in middleware or elsewhere in your Yee application) without affecting the application as a whole. You can obtain a reference to the Yee application’s response object with:
<?php $app = new \Yee\Yee(); $app->response;
An HTTP response has three primary properties:
The response object provides helper methods, described next, that help you interact with these HTTP response properties. The default response object will return a 200 OK HTTP response with the text/html content type.