EventHttpRequest::addHeader
(PECL event >= 1.4.0-beta)
EventHttpRequest::addHeader — Adds an HTTP header to the headers of the request
Description
$key
,
string
$value
,
int
$type
): boolAdds an HTTP header to the headers of the request.
Parameters
-
key -
Header name.
-
value -
Header value.
-
type -
One of
EventHttpRequest::*_HEADERconstants .
Return Values
Returns true on success or false on failure.
See Also
- EventHttpRequest::removeHeader() - Removes an HTTP header from the headers of the request

