$requestUri
$requestUri : string
Request URI
HTTP request class
__construct(string $uri = null, string $basePath = null) : \Pop\Http\Request
Constructor
Instantiate the request object
string | $uri | |
string | $basePath |
getPath(integer $num = null) : string|array
Get a path segment, divided by the forward slash, where $num refers to the array key index, i.e., 0 1 2 /hello/world/page
No $num returns the whole path segment as an array, and if the $num is not set, then it returns null.
integer | $num |
setRequestUri(string $uri = null, string $basePath = null) : \Pop\Http\Request
Set the request URI
string | $uri | |
string | $basePath |
setBasePath(string $path = null) : \Pop\Http\Request
Set the base path
string | $path |
setQuery(string $key, string $value) : \Pop\Http\Request
Set a value for $_GET
string | $key | |
string | $value |
setPost(string $key, string $value) : \Pop\Http\Request
Set a value for $_POST
string | $key | |
string | $value |
setFile(string $key, string $value) : \Pop\Http\Request
Set a value for $_FILES
string | $key | |
string | $value |