class Request

Methods

mixed
getFile()

Gets the filename of the script called by the request.

mixed
getHost()

Gets the host from the php server superglobals

mixed
getMethod()

Gets the request method.

mixed
getPort()

Gets the port from the php server superglobals

string
getPathInfo()

Gets the path info from the php server superglobals

mixed
getRequestURI()

Gets the request URI from the php server superglobals

mixed
getScriptName()

Gets the name of the script called from the request

mixed
getURIComponent($key)

Gets a given URI component off the parsed request URI

mixed
getAllURIComponents()

Returns the array of URI components off the parsed request URI

mixed
getUserAgent()

Gets the user agent from the php server superglobals

__construct()

Request constructor.

array|mixed|null|string
get(string $key = '')

Gets data off the request body.

null
query($key)

Gets data from the query parameters of the request.

string
__toString()

No description

Details

at line line 28
mixed getFile()

Gets the filename of the script called by the request.

Return Value

mixed

at line line 40
mixed getHost()

Gets the host from the php server superglobals

Return Value

mixed

at line line 52
mixed getMethod()

Gets the request method.

Return Value

mixed

at line line 64
mixed getPort()

Gets the port from the php server superglobals

Return Value

mixed

at line line 76
string getPathInfo()

Gets the path info from the php server superglobals

Return Value

string

at line line 88
mixed getRequestURI()

Gets the request URI from the php server superglobals

Return Value

mixed

at line line 100
mixed getScriptName()

Gets the name of the script called from the request

Return Value

mixed

at line line 112
mixed getURIComponent($key)

Gets a given URI component off the parsed request URI

Parameters

$key

Return Value

mixed

at line line 122
mixed getAllURIComponents()

Returns the array of URI components off the parsed request URI

Return Value

mixed

at line line 133
mixed getUserAgent()

Gets the user agent from the php server superglobals

Return Value

mixed

at line line 141
__construct()

Request constructor.

at line line 188
array|mixed|null|string get(string $key = '')

Gets data off the request body.

Given a key, returns the value or null. Without arguments, returns the whole request body.

Parameters

string $key

Return Value

array|mixed|null|string

at line line 205
null query($key)

Gets data from the query parameters of the request.

Parameters

$key

Return Value

null

at line line 213
string __toString()

Return Value

string