HttpMessage
PHP Manual

HttpMessage::setHeaders

(PECL pecl_http >= 0.10.0)

HttpMessage::setHeadersSet headers

Descrição

public void HttpMessage::setHeaders ( array $headers )

Sets new headers.

Parâmetros

headers

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


HttpMessage
PHP Manual