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

search for in the

HttpMessage::setResponseStatus> <HttpMessage::setRequestUrl
[edit] Last updated: Fri, 25 May 2012

view this page in

HttpMessage::setResponseCode

(PECL pecl_http >= 0.10.0)

HttpMessage::setResponseCodeレスポンスコードを設定する

説明

public bool HttpMessage::setResponseCode ( int $code )

HTTP レスポンスメッセージのレスポンスコードを設定します。

パラメータ

code

HTTP レスポンスコード。

返り値

成功した場合は TRUE、メッセージの型が HttpMessage::TYPE_RESPONSE でない場合、あるいはレスポンスコードが範囲外 (100-510 以外) の場合に FALSE を返します。



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites