class RedirectResponse extends Response
RedirectResponse represents an HTTP response doing a redirect.
Methods
|
__construct(string $url, integer $status = 302, array $headers = array())
Constructor. |
||
| static Response |
create($url = '', integer $status = 302, array $headers = array())
Factory method for chainability |
|
| string |
getTargetUrl()
Returns the target URL. |
|
| RedirectResponse |
setTargetUrl(string $url)
Sets the redirect target of this response. |
Details
at line 38
public
__construct(string $url, integer $status = 302, array $headers = array())
Constructor.
at line 56
static public Response
create($url = '', integer $status = 302, array $headers = array())
Factory method for chainability
Example:
return Response::create($body, 200)
->setSharedMaxAge(300);
at line 66
public string
getTargetUrl()
Returns the target URL.
at line 80
public RedirectResponse
setTargetUrl(string $url)
Sets the redirect target of this response.