Method | Description | |
---|---|---|
__construct ( string | Psr\Http\Message\UriInterface $uri, integer $status = 302, array $headers = [] ) | Create a redirect response. |
public __construct ( string | Psr\Http\Message\UriInterface $uri, integer $status = 302, array $headers = [] ) | ||
$uri | string | Psr\Http\Message\UriInterface | URI for the Location header. |
$status | integer | Integer status code for the redirect; 302 by default. |
$headers | array | Array of headers to use at initialization. |