PHP Класс Zend\Diactoros\Response\RedirectResponse

Наследование: extends Zend\Diactoros\Response
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string | Psr\Http\Message\UriInterface $uri, integer $status = 302, array $headers = [] ) Create a redirect response.

Описание методов

__construct() публичный Метод

Produces a redirect response with a Location header and the given status (302 by default). Note: this method overwrites the location $headers value.
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.