(PECL pecl_http >= 0.10.0)
HttpMessage::setType — Set message type
Set Message Type. Either HTTP_MSG_NONE, HTTP_MSG_REQUEST or HTTP_MSG_RESPONSE.
the HttpMessage::TYPE