class RedirectResponse implements IResponse

Redirects to new URI.

Traits

Strict class for better experience.

Methods

__construct(string $url, int $httpCode = Http\IResponse::S302_FOUND)

No description

string
getUrl()

No description

int
getCode()

No description

void
send(IRequest $httpRequest, IResponse $httpResponse)

Sends response to output.

Details

at line 30
__construct(string $url, int $httpCode = Http\IResponse::S302_FOUND)

Parameters

string $url
int $httpCode

at line 37
string getUrl()

Return Value

string

at line 43
int getCode()

Return Value

int

at line 52
void send(IRequest $httpRequest, IResponse $httpResponse)

Sends response to output.

Parameters

IRequest $httpRequest
IResponse $httpResponse

Return Value

void