HttpMessage::setBody
HttpMessage::setHttpVersion
The HttpMessage class
PHP Manual

# HttpMessage::setHeaders

(PECL pecl_http >= 0.10.0)

HttpMessage::setHeaders — Set headers

### Descripción

public void HttpMessage::setHeaders ( array `$headers` )

Sets new headers.

### Lista de parámetros

`headers`

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

HttpMessage::setBody
HttpMessage::setHttpVersion
The HttpMessage class
PHP Manual