swoole_http_client->setMethod
设置Http请求方法
function
swoole_http_client
->
setMethod(
string
$method
);
$client
->
setMethod(
"
PUT
"
);
$method 必须为符合Http标准的方法名称,如果$method设置错误可能会被Http服务器拒绝请求
setMethod仅在当前请求有效,发送请求后会立刻清除method设置