mini\Http\Message\HtmlResponse::ResponseTrait() Method

protected

Signature

protected function ResponseTrait(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

Configure the response trait

Inherited From

mini\Http\Message\Response

Source

src/Http/Message/ResponseTrait.php:36-44