Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Icicle
Http
Message
Message
withAddedHeader
Icicle\Http\Message\Message::withAddedHeader PHP Method
Message Interface Documentation
Mostrar archivo
Open project: icicleio/http
withAddedHeader()
public
method
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[]
return
Icicle\Http\Message\Message
public function withAddedHeader(string $name, $value) : Message;
Message
getBody
getHeader
getHeaderAsArray
getHeaders
getProtocolVersion
hasHeader
withAddedHeader
withBody
withHeader
withProtocolVersion
withoutHeader