HttpRequest::setCookies
HttpRequest::setMethod
HttpRequest
PHP Manual

# HttpRequest::setHeaders

(PECL pecl_http >= 0.12.0)

HttpRequest::setHeaders — Set headers

### Opis

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

Set request header name/value pairs.

### Parametry

`headers`

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

### Zwracane wartości

Zwraca `TRUE` w przypadku powodzenia, `FALSE` w przypadku błędu.

HttpRequest::setCookies
HttpRequest::setMethod
HttpRequest
PHP Manual