OpenSwoole\Core\Psr\ServerRequest->withAttribute

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->withAttribute($name, $value)

Parameters

name

The attribute name.

value

The value of the attribute.

Return

Description

Set request attribute.

Last updated on February 28, 2026