class RedirectResponse extends RedirectResponse

Methods

__construct(string $uri, array $headers = [], int $status = 302)

Creates a new instance.

void
send()

Sends the HTTP response to the client.

Details

at line 13
__construct(string $uri, array $headers = [], int $status = 302)

Creates a new instance.

Parameters

string $uri

The URL to redirect to.

array $headers

Additional headers to include in the response.

int $status

The HTTP status code for the redirect (default: 302).

at line 24
void send()

Sends the HTTP response to the client.

Sets the HTTP status code and headers, then send all headers and terminates the script.

Return Value

void