Redirect
extends CustomResponse
in package
Base class for custom response types with specific Content-Type handling.
Subclasses must implement the stream() method to output the response body.
Table of Contents
Properties
- $headers : array<string|int, mixed>|null
- $statusCode : int
- $url : string
Methods
- __construct() : mixed
- The Content-Type of the request body this class handles.
- stream() : void
Properties
$headers
public
array<string|int, mixed>|null
$headers
= null
$statusCode
public
int
$statusCode
= 200
$url read-only
public
string
$url
Methods
__construct()
The Content-Type of the request body this class handles.
public
__construct(string $url[, int $statusCode = 302 ]) : mixed
Parameters
- $url : string
- $statusCode : int = 302
stream()
public
stream() : void