The HttpMessage class
PHP Manual

HttpMessage::setHeaders

(PECL pecl_http:0.10.0-1.5.5)

HttpMessage::setHeadersSet headers

Описание

public void HttpMessage::setHeaders ( array $headers )

Sets new headers.

Список параметров

headers

associative array containing the new HTTP headers, which will replace all previous HTTP headers of the message


The HttpMessage class
PHP Manual