PHP 클래스 Zend\Diactoros\Response\RedirectResponse

상속: extends Zend\Diactoros\Response
파일 보기 프로젝트 열기: zendframework/zend-diactoros 1 사용 예제들

공개 메소드들

메소드 설명
__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.