File src/class/Http/Request.php
class Lia\Http\Request
A value-object to represent a web request.
Constants
Properties
-
public readonly array $data;
$_GET or $_POST params or null, depending on the request method. -
public readonly string $url;
Url Path (no query string, no domain) -
public readonly string $method;
The method, GET, POST, PUT, etc
Methods
-
public function __construct(string $url = null, string $methodnull, array $data null)
Create an HTTP Request.