跳到主要内容

http_requests

简介

组件接口

http_requests.gs

函数原型函数作用
map request(string cmd, string url, mixed data = nil, map opts = nil, int timeout = 3)发送 http 请求, 默认短链接, 不推荐直接调用, 建议使用 get 或者 post 间接调用
map get(string url, map opts = nil, int timeout = 3)以 get 的方式发送 http 请求
map post(string url, mixed data, map opts = nil, int timeout = 3)以 post 的方式发送 http 请求
map put(string url, mixed data, map opts = nil, int timeout = 3)以 put 的方式发送 http 请求
map delete(string url, mixed data, map opts = nil, int timeout = 3)以 delete 的方式发送 http 请求