File code/class/Objects/Request.php
class Lia\Obj\Request
A simple object to represent a web request
Constants
Properties
-
protected $data;
$_GET or $_POST params or null, depending on the request method. -
protected $url;
Url Path (no query string, no domain) -
protected $method;
The method, GET, POST, PUT, etc
Methods
-
public function __construct($url=null, $methodnull)
-
public function url()
Get the url -
public function method()
Get the request method (GET, PUT, POST, etc) -
public function data()
Get the request data (from$_GET
or$_POST
or null)