HttpMessage
在线手册:中文  英文

HttpMessage::setRequestMethod

(PECL pecl_http >= 0.10.0)

HttpMessage::setRequestMethodSet request method

说明

public bool HttpMessage::setRequestMethod ( string $method )

Set the Request Method of the HTTP Message.

参数

method

the request method name

返回值

Returns TRUE on success, or FALSE if the message is not of type HttpMessage::TYPE_REQUEST or an invalid request method was supplied.


HttpMessage
在线手册:中文  英文
易百教程