Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Icicle
Http
Message
Message
withAddedHeader
Icicle\Http\Message\Message::withAddedHeader PHP Метод
Документация по интерфейсу Message
Показать файл
Открыть проект
withAddedHeader()
публичный
Метод
Returns a new instance with the given value added to the named header. If the header did not exist, the header is created with the given value.
public
withAddedHeader
(
string
$name
,
string
| string[]
$value
) :
Icicle\Http\Message\Message
$name
string
$value
string
| string[]
Результат
Icicle\Http\Message\Message
public function withAddedHeader(string $name, $value) : Message;
Message
getBody
getHeader
getHeaderAsArray
getHeaders
getProtocolVersion
hasHeader
withAddedHeader
withBody
withHeader
withProtocolVersion
withoutHeader