OpenSwoole\Core\Psr\ServerRequest->getAttribute

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

Declaration

<?php OpenSwoole\Core\Psr\ServerRequest->getAttribute($name, $default = null)

Parameters

name

The attribute name.

default

Default value to return if the attribute does not exist.

Return

Description

Retrieve a single derived request attribute.

Last updated on September 23, 2022