OpenSwoole\Core\Psr\Response->withAddedHeader

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

Parameters

name

Name of the HTTP header.

value

Value of the HTTP header that you want to set.

Return

Description

Set HTTP header.

Last updated on February 28, 2026