array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'eventhttprequest.addheader.php', 1 => 'EventHttpRequest::addHeader', 2 => 'Adds an HTTP header to the headers of the request', ), 'up' => array ( 0 => 'class.eventhttprequest.php', 1 => 'EventHttpRequest', ), 'prev' => array ( 0 => 'class.eventhttprequest.php', 1 => 'EventHttpRequest', ), 'next' => array ( 0 => 'eventhttprequest.cancel.php', 1 => 'EventHttpRequest::cancel', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventhttprequest/addheader.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventHttpRequest::addHeader

(PECL event >= 1.4.0-beta)

EventHttpRequest::addHeaderAdds an HTTP header to the headers of the request

Beschreibung

public EventHttpRequest::addHeader( string $key , string $value , int $type ): bool

Adds an HTTP header to the headers of the request.

Parameter-Liste

key

Header name.

value

Header value.

type

One of EventHttpRequest::*_HEADER constants.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Siehe auch