选择语言 :

 Module_HttpClient_Driver_Fsock::method

设置,获取REST的类型

string Module_HttpClient_Driver_Fsock::method( [ string $method = null ] )

参数列表

参数 类型 描述 默认值
$method string GET|POST|DELETE|PUT 等,不传则返回当前method null
返回值
  • string
  • HttpClient_Driver_Fsock
File: ./modules/httpclient/driver/fsock.class.php
public function method($method = null)
{
    if (null===$method)return $this->method;

    $this->method = strtoupper($method);

    return $this;
}