src/core/framework/core/WWW/HTTP/HttpMessage.php
public function setRequestMethod($method)
    {
        if ($this->getType() !== self::TYPE_REQUEST)
            return false;

        $method = strtoupper($method);
        $REQUEST_METHODS = array('OPTIONS', 'GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE');

        if (!in_array($method, $REQUEST_METHODS))
            return false;

        $this->requestMethod = $method;
        return true;
    }
public function setRequestMethod($method)
    {
        if ($this->getType() !== self::TYPE_REQUEST)
            return false;

        $method = strtoupper($method);
        $REQUEST_METHODS = array('OPTIONS', 'GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE');

        if (!in_array($method, $REQUEST_METHODS))
            return false;

        $this->requestMethod = $method;
        return true;
    }
public function setRequestMethod ( $ method ) { if ( $ this -> getType ( ) !== self :: TYPE_REQUEST ) return false ; $ method = strtoupper ( $ method ) ; $ REQUEST_METHODS = array ( 'OPTIONS' , 'GET' , 'HEAD' , 'POST' , 'PUT' , 'DELETE' , 'TRACE' ) ; if ( ! in_array ( $ method , $ REQUEST_METHODS ) ) return false ; $ this -> requestMethod = $ method ; return true ; }
Set the Request Method of the HTTP Message

@param string $method  The request method name.
{@link http://tools.ietf.org/html/rfc2068#section-5.1.1 See RFC2068 section 5.1.1}
for list of acceptable methods
@return bool  TRUE on success, or FALSE if the message is not of type
HttpMessage::TYPE_REQUEST or an invalid request method was supplied
Set the Request Method of the HTTP Message