Request
`kingston\icarus\Request`
`class Request`
Controlling class for all system http requests.
Properties
array |
$routeParams |
http route parameters |
Methods
public function getMethod() : string
get server request method
Parameters
none
return
string
public function getUrl() : string
get server request URI
Parameters
none
return
string
public function isGet() : bool
confirm http method is GET
Parameters
none
return
bool
public function isPost() : bool
confirm http method is POST
Parameters
none
return
bool
public function getBody() : array
get http request data $_GET or $_POST
Parameters
none
return
array
public function setRouteParams($params) : self
set http route parameters
Parameters
mixed
$params
return
self
public function getRouteParams() : array
get all http route parameters
Parameters
none
return
array
public function getRouteParam($param, $default = null) : string
get a single http route parameter
Parameters
string
$param
null
$default
return
string