PHP 7.1.18 Released


(PECL pecl_http >= 0.12.0)

HttpRequest::setHeadersSet headers


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

Set request header name/value pairs.

Elenco dei parametri


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

Valori restituiti

Restituisce TRUE in caso di successo, FALSE in caso di fallimento.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top