代码拉取完成,页面将自动刷新
简单好用的Unity http WebRequest请求,可配置token,配置返回值格式 有不明白使用说明的,或者有使用优化的,烦请大佬加企鹅群:747648080,本人会积极回复交流的♥♥♥
软件架构说明
HttpTool.Instance.Token = "123";
HttpTool.Instance.TimeOut = 10;
HttpTool.Instance.Get<请求的数据格式>("url", data =>
{
Debug.Log("获得的数据列表:" + data.data);
}, 是否需要token);
HttpTool.Instance.Post<请求的数据格式>("url",
new
{
参数
}
,data =>
{
Debug.Log("获得的数据列表:" + data.data);
}, 是否需要token);
HttpTool.Instance.Put<请求的数据格式>("url",
new
{
参数
}
,data =>
{
Debug.Log("获得的数据列表:" + data.data);
}, 是否需要token);
HttpTool.Instance.DownloadFile<请求的数据格式>("url","下载路径","文件名", float loadnum =>
{
Debug.Log("下载进度:" + loadnum);
}, 是否需要token);
HttpTool.Instance.DownloadFile<请求的数据格式>("url","文件下载路径", float loadnum =>
{
Debug.Log("下载进度:" + loadnum);
}, 是否需要token);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。