Request
class Request
Methods
Gets the filename of the script called by the request.
Gets the host from the php server superglobals
Gets the request method.
Gets the port from the php server superglobals
Gets the path info from the php server superglobals
Gets the request URI from the php server superglobals
Gets the name of the script called from the request
Gets a given URI component off the parsed request URI
Returns the array of URI components off the parsed request URI
Gets the user agent from the php server superglobals
Request constructor.
Gets data off the request body.
Gets data from the query parameters of the request.
No description
Details
at line line 28
mixed
getFile()
Gets the filename of the script called by the request.
at line line 40
mixed
getHost()
Gets the host from the php server superglobals
at line line 52
mixed
getMethod()
Gets the request method.
at line line 64
mixed
getPort()
Gets the port from the php server superglobals
at line line 76
string
getPathInfo()
Gets the path info from the php server superglobals
at line line 88
mixed
getRequestURI()
Gets the request URI from the php server superglobals
at line line 100
mixed
getScriptName()
Gets the name of the script called from the request
at line line 112
mixed
getURIComponent($key)
Gets a given URI component off the parsed request URI
at line line 122
mixed
getAllURIComponents()
Returns the array of URI components off the parsed request URI
at line line 133
mixed
getUserAgent()
Gets the user agent from the php server superglobals
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.
at line line 205
null
query($key)
Gets data from the query parameters of the request.