跳到主要内容

delete

以 delete 的形式发送 http/https 请求,

HTTP DELETE 请求方法用于删除指定的资源。

声明

HttpResponse delete(string url, mixed data, int type, map headers, map extra)

参数

参数名描述
url请求的 url, 以 http 或者 https 开头,
data数据
typedata 数据类型, 默认为 json, 参考 http_const.Content_Type
headers额外请求头, 数据类型为 map
extra额外设置参数
"timeout": 超时时间
"re_try_time": 失败之后的重试次数

返回值

使用方式

返回文档