OpenSwoole\Core\Psr\Response->__construct

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

Declaration

<?php OpenSwoole\Core\Psr\Response->__construct()

Parameters

body

The response body

statusCode

The response status code

reason phrase

The response reason phrase

headers

The response headers

protocolVersion

The response protocol version

Return

Description

Create a new Response with constructor function.

Last updated on September 23, 2022