The HttpRequest
PHP Manual

HttpRequest::setHeaders

(PECL pecl_http >= 0.12.0)

HttpRequest::setHeadersSet headers

설명

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

Set request header name/value pairs.

인수

headers

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

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.


The HttpRequest
PHP Manual