Request Overview

Each Yee application instance has one request object. The request object is an abstraction of the current HTTP request and allows you to easily interact with the Yee application's environment variables. Although each Yee application includes a default request object, the \Yee\Http\Request 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 request object like this:

// Returns instance of \Yee\Http\Request
$request = $app->request;