标签:headers github 参数 第三方 url soc 文件 pos open
wget?https://raw.githubusercontent.com/pintsized/lua-resty-http/master/lib/resty/http_headers.lua??
wget?https://raw.githubusercontent.com/pintsized/lua-resty-http/master/lib/resty/http.lua??
local res, err = httpc:request_uri(uri, {
method = "POST/GET", ---请求方式
query = str, ---get方式传参数
body = str, ---post方式传参数
path = "url" ----路径
headers = { ---header参数
["Content-Type"] = "application/json",
}
})
标签:headers github 参数 第三方 url soc 文件 pos open
原文地址:https://www.cnblogs.com/frankltf/p/12171855.html