HttpRequest::setCookies
HttpRequest::setMethod
The HttpRequest
PHP Manual

# HttpRequest::setHeaders

(PECL pecl_http >= 0.12.0)

HttpRequest::setHeaders — Set headers

### Descrição

public bool HttpRequest::setHeaders ([ array `$headers` ] )

Set request header name/value pairs.

### Parâmetros

`headers`

  an associative array as parameter containing header name/value pairs; if empty or omitted, all previously set headers will be unset

### Valor Retornado

Retorna `TRUE` em caso de sucesso ou `FALSE` em falhas.

HttpRequest::setCookies
HttpRequest::setMethod
The HttpRequest
PHP Manual