final class RedirectResponse implements Response

Redirects to new URI.

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 28
__construct(string $url, int $httpCode = Http\IResponse::S302_FOUND)

No description

Parameters

string $url
int $httpCode

at line 35
string getUrl()

No description

Return Value

string

at line 41
int getCode()

No description

Return Value

int

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

Sends response to output.

Parameters

IRequest $httpRequest
IResponse $httpResponse

Return Value

void

Traits

Strict class for better experience.