mini\Http\Message\Response::__construct() Method

public constructor

Signature

public function __construct(mixed $body, array $headers = array (
), int $statusCode = 200, ?string $reasonPhrase = NULL, string $protocolVersion = '1.1')

Parameters

Name Type Default Description
$body mixed required Documentation missing
$headers array array ( ) Documentation missing
$statusCode int 200 Documentation missing
$reasonPhrase ?string NULL Documentation missing
$protocolVersion string '1.1' Documentation missing

Documentation

Construct the response trait.

Source

src/Http/Message/Response.php:36-38