The request object is a wrapper of HTTP Request.
Commonly, it is use to access to the HTTP Request variables:
$_SERVER, $_GET, $_POST, $_COOKIE and $_FILES.
Inside application context, for example is in your route. You can access to request parameters like this:
routes/posts.php