© 本文档使用 php.cn手册 发布
(PECL pecl_http >= 0.10.0)
HttpMessage::setType — Set message type
$type
Set Message Type. Either HTTP_MSG_NONE , HTTP_MSG_REQUEST or HTTP_MSG_RESPONSE .
HTTP_MSG_NONE
HTTP_MSG_REQUEST
HTTP_MSG_RESPONSE
type
the HttpMessage::TYPE_*