Forum und email

HttpRequest::setMethod

(PECL pecl_http:0.10.0-1.5.5)

HttpRequest::setMethod — Set method

說明

public bool HttpRequest::setMethod ( int $request_method )

Set the request method.

參數

request_method

the request method to use

Return值

如果成功則回傳 TRUE,失敗則回傳 FALSE