code: private static function parseGetPostSessionCookie(Request &$request)
      {
          foreach ($_GET as $name => $value) {
              $request->params[$name] = $value;
          }
          foreach ($_POST as $name => $value) {
              $request->params[$name] = $value;
          }
          foreach ($_COOKIE as $name => $value) {
              $request->params[$name] = $value;
          }
          foreach ($_FILES as $name => $value) {
              $request->params[$name] = $value;
          }
          if (isset($_SESSION)) {
              foreach ($_SESSION as $name => $value) {
                  $request->params[$name] = $value;
              }
          }
      }
docs: Parse the super globals for request parameters
  
  @param Request $request
  Request object to put the parameters in