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

add a note add a note

User Contributed Notes

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