EventHttpRequest::addHeader
(PECL event >= 1.4.0-beta)
EventHttpRequest::addHeader — Adds an HTTP header to the headers of the request
Descrição
Adds an HTTP header to the headers of the request.
Parâmetros
-
key
-
Header name.
-
value
-
Header value.
-
type
-
One of
EventHttpRequest::*_HEADER
constants .
Veja Também
- EventHttpRequest::removeHeader() - Removes an HTTP header from the headers of the request