8000 GitHub - 8033/workers: Cloudflare Workers
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

8033/workers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Workers

❤ api

常用的接口

接口


❤ cors

支持跨域请求(转换不支持跨域请求的接口),可直接发起 ajax、fetch
支持HTTPS(解决远程数据接口不支持HTTPS)

接口

  • Host/{URL}
  • https://cors.zme.ink/{URL}

示例

// 拷贝到控制台运行
var $url = "http://wthrcdn.etouch.cn/weather_mini?citykey=101040100";
fetch("https://cors.zme.ink/" + $url).then(x => x.text()).then(console.log)

❤ raw

GitHub 仓库内容直接浏览,替换 raw.githubusercontent.com
处理 svg、js、css 输出的 Content-Type

接口

  • Host/{name}/{repos}/{branch}/{path}
  • 替换 githubusercontent.comzme.ink

示例


❤ upload

基于 Token 授权上传(可限制格式的)文件到(白名单)GitHub仓库

接口

  • upload.zme.ink
  • POST请求,参数:
// 二进制的流的方式发送文件,整个上传内容都为文件内容, 其他参数在URL上
binary

// url 参数
or:{owner}/{repos} 账号/仓库
name:filename.jpg 文件名
pathname:(可选)自定义路径

示例


安装

套餐

CPU 日请求 突发速率 脚本大小
10ms 100,000 10分钟1000个请求 压缩后1M

详情:https://developers.cloudflare.com/workers/about/limits/

Source


通知

额度顶不住了,使用量大请用自己的账号搭建服务吧,谢谢!!!

图片说明

如果你不想麻烦,也许你可以赞助我升级为付费用户 $5/month 1千万请求量,请备注来自 cfw

About

Cloudflare Workers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%
0