OpenSwoole\Core\Psr\Response->__construct

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

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 February 28, 2026