HttpMessage
PHP 手册

HttpMessage::setType

(PECL pecl_http >= 0.10.0)

HttpMessage::setTypeSet message type

说明

public void HttpMessage::setType ( int $type )

Set Message Type. Either HTTP_MSG_NONE, HTTP_MSG_REQUEST or HTTP_MSG_RESPONSE.

参数

type

the HttpMessage::TYPE_*


HttpMessage
PHP 手册