EventHttpRequest::addHeader
(PECL event >= 1.4.0-beta)
EventHttpRequest::addHeader — Adds an HTTP header to the headers of the request
説明
public
EventHttpRequest::addHeader
(
string
$key
,
string
$value
,
int
$type
) : bool
Adds an HTTP header to the headers of the request.
返り値
Returns true
on success. Otherwise false
.