PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpMessage::__construct> <HttpMessage クラス
Last updated: Fri, 03 Oct 2008

view this page in

HttpMessage::addHeaders

(PECL pecl_http:0.10.0-1.5.5)

HttpMessage::addHeadersヘッダを追加する

説明

public void HttpMessage::addHeaders ( array $headers [, bool $append = FALSE ] )

ヘッダを追加します。append が true の場合は同名のヘッダが複数登録されます。 そうでない場合は、同名のヘッダは上書きされます。

パラメータ

headers

既存のメッセージのヘッダに追加する HTTP ヘッダを含む連想配列。

append

true の場合、もし追加しようとしているヘッダが既に存在すれば、 それを配列に変換して両方の値を含むようにします。false の場合は、 既存のヘッダの値が新しい値で上書きされます。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。



add a note add a note User Contributed Notes
HttpMessage::addHeaders
There are no user contributed notes for this page.

HttpMessage::__construct> <HttpMessage クラス
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites