EventHttpRequest::addHeader
PHP function
Edit on GitHub ✎
(PECL event >= 1.4.0-beta)
Adds an HTTP header to the headers of the request
Description
EventHttpRequest::addHeader(string $key, string $value, int $type): bool
Adds an HTTP header to the headers of the request.
Parameters
keyHeader name.
valueHeader value.
type
Return Values
Success
See Also
EventHttpRequest::removeHeader