Request
class Request extends ServerRequest implements RequestInterface (View source)
A representation of a request to the server.
Methods
No description
No description
{@inheritDoc}
Check if the request method is GET.
Check if the request method is HEAD.
Check if the request method is POST.
Check if the request method is PUT.
Check if the request method is PATCH.
Check if the request method is DELETE.
Check if the request method is OPTIONS.
Check if the request method is a "read" verb.
Check if the request is an ajax request.
Get a value from the request attributes.
Get a value from the request query (i.e. $_GET).
Get a value from the request body (i.e. $_POST).
Get a value from the COOKIE parameters.
Get a value from the FILES parameters.
Get a value from the SERVER parameters.
Get a value from the headers.
Details
at line 46
string
getUrl()
at line 77
getMethod()
{@inheritDoc}
at line 90
boolean
isGet()
Check if the request method is GET.
at line 97
boolean
isHead()
Check if the request method is HEAD.
at line 104
boolean
isPost()
Check if the request method is POST.
at line 111
boolean
isPut()
Check if the request method is PUT.
at line 118
boolean
isPatch()
Check if the request method is PATCH.
at line 125
boolean
isDelete()
Check if the request method is DELETE.
at line 132
boolean
isOptions()
Check if the request method is OPTIONS.
at line 139
boolean
isReadVerb()
Check if the request method is a "read" verb.
at line 146
boolean
isAjax()
Check if the request is an ajax request.
at line 170
mixed
attributes(string $key = '', mixed $default = null)
Get a value from the request attributes.
at line 178
mixed
query(string $key = '', mixed $default = null)
Get a value from the request query (i.e. $_GET).
at line 186
mixed
body(string $key = '', mixed $default = null)
Get a value from the request body (i.e. $_POST).
at line 194
mixed
cookies(string $key = '', mixed $default = null)
Get a value from the COOKIE parameters.
at line 202
mixed
files(string $key = '', mixed $default = null)
Get a value from the FILES parameters.
at line 210
mixed
server(string $key = '', mixed $default = null)
Get a value from the SERVER parameters.
at line 218
mixed
headers(string $key = '', mixed $default = null)
Get a value from the headers.