Class HTTPRequest
This class is used to send HTTP request and get the result
- Hawk\HTTPRequest uses Hawk\Utils
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
#
getResponseHeaders( string $name = null )
Get the response headers. If $name is set, then this function will return the specific header value, else it will return an array containing all headers |
public
integer
|
|
public
mixed
|
Methods used from Hawk\Utils
Constants summary
string |
METHOD_POST
|
#
'POST'
|
string |
METHOD_GET
|
#
'GET'
|
string |
METHOD_PUT
|
#
'PUT'
|
string |
METHOD_DELETE
|
#
'DELETE'
|
string |
METHOD_PATCH
|
#
'PATCH'
|