HttpMessage::setRequestMethod()
HttpMessage::setRequestMethod - Set request method
Syntax
public HttpMessage::setRequestMethod (
string $method)
Arguments
- method - the request method name
Description
Set the Request Method of the HTTP Message.
Version
PHP PECL pecl_http >= 0.10.0
Return value
Returns TRUE on success, or FALSE if the message is not of type HttpMessage:: TYPE_REQUEST or an invalid request method was supplied.