Class Request
This class define methods to get HTTP request information
- Hawk\Singleton
-
Hawk\Request
Methods summary
protected
|
|
public
string
|
|
public
string
|
|
public
true
|
|
public
string
|
|
public
string|array
|
|
public
string|array
|
|
public
string|array
|
|
public
string|array
|
#
getHeaders( string $name = "" )
This function returns the header value for the key $name, of all the headers if $name is not provided |
public
string|array
|
#
getCookies( string $name = "" )
This function returns the value of the cookie named $name, or all cookies if $name is not provided |
Methods inherited from Hawk\Singleton
Properties summary
public
|
$clientIp
The clientIp, registered as static variable, to avoid to calculate it each time |
|
public
string
|
$uri
The request URI |
|
public
string
|
$method
The request method (GET, POST, PATCH, DELETE, PUT) |
|
public
array
|
$params
The request parameters |
|
public
array
|
$headers
The request headers |
|
public
mixed
|
$body
The request body |
|
public
array
|
$files
The uploaded files |
#
array()
|
public
array
|
$cookies
The request sent cookies |
#
array()
|
protected static
|
$instance
The request instance |