The HttpRequest
PHP Manual

HttpRequest::addHeaders

(PECL pecl_http >= 0.10.0)

HttpRequest::addHeadersAdd headers

설명

public bool HttpRequest::addHeaders ( array $headers )

Add request header name/value pairs.

인수

headers

an associative array as parameter containing additional header name/value pairs

반환값

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


The HttpRequest
PHP Manual