OpenSwoole\Core\Psr\ServerRequest->__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\ServerRequest->__construct()

Parameters

uri

The request uri

method

The request method

body

The request body

headers

The request headers

protocolVersion

The request protocol version

Return

Description

Create a new ServerRequest with constructor function.

Last updated on February 28, 2026