Zend Framework
3.0
|
Produce a redirect response. More...
Public Member Functions | |
__construct ($uri, $status=302, array $headers=[]) | |
Create a redirect response. | |
Public Member Functions inherited from Response | |
__construct ($body= 'php://memory', $status=200, array $headers=[]) | |
getStatusCode () | |
{} | |
getReasonPhrase () | |
{} | |
withStatus ($code, $reasonPhrase= '') | |
{} | |
Produce a redirect response.
__construct | ( | $uri, | |
$status = 302 , |
|||
array | $headers = [] |
||
) |
Create a redirect response.
Produces a redirect response with a Location header and the given status (302 by default).
Note: this method overwrites the `location` $headers value.
string | UriInterface | $uri | URI for the Location header. |
int | $status | Integer status code for the redirect; 302 by default. |
array | $headers | Array of headers to use at initialization. |