Redirect
class Redirect implements ResponseSenderInterface
Redirect response.
Properties
protected string | $location | Location. | |
protected int | $status | Status code. |
Methods
__construct(string $location, int $status = 302)
Constructor.
multipleChoices()
Sets the status code to 300.
movedPermanently()
Sets the status code to 301.
notModified()
Sets the status code to 304.
temporaryRedirect()
Sets the status code to 307.
permanentRedirect()
Sets the status code to 308.
Details
at line 40
__construct(string $location, int $status = 302)
Constructor.
at line 53
Redirect
setStatus(int $status)
Sets the status code.
at line 65
Redirect
multipleChoices()
Sets the status code to 300.
at line 77
Redirect
movedPermanently()
Sets the status code to 301.
at line 89
Redirect
found()
Sets the status code to 302.
at line 101
Redirect
seeOther()
Sets the status code to 303.
at line 113
Redirect
notModified()
Sets the status code to 304.
at line 125
Redirect
useProxy()
Sets the status code to 305.
at line 137
Redirect
temporaryRedirect()
Sets the status code to 307.
at line 149
Redirect
permanentRedirect()
Sets the status code to 308.