Redirect
class Redirect implements ResponseSenderInterface
Redirect response.
Properties
protected string | $location | Location. | |
protected int | $status | Status code. |
Methods
__construct(string $location)
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 39
__construct(string $location)
Constructor.
at line 50
Redirect
status(int $status)
Sets the status code.
at line 62
Redirect
multipleChoices()
Sets the status code to 300.
at line 74
Redirect
movedPermanently()
Sets the status code to 301.
at line 86
Redirect
found()
Sets the status code to 302.
at line 98
Redirect
seeOther()
Sets the status code to 303.
at line 110
Redirect
notModified()
Sets the status code to 304.
at line 122
Redirect
useProxy()
Sets the status code to 305.
at line 134
Redirect
temporaryRedirect()
Sets the status code to 307.
at line 146
Redirect
permanentRedirect()
Sets the status code to 308.