final class RedirectResponse implements IResponse

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

No description

Parameters

string $url
int $httpCode

at line 37
string getUrl()

No description

Return Value

string

at line 43
int getCode()

No description

Return Value

int

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

Sends response to output.

Parameters

IRequest $httpRequest
IResponse $httpResponse

Return Value

void

Traits

Strict class for better experience.