gretchen:在TypeScript中进行提取
Gretchen使fetch发生在TypeScript中。寻找更多信息?查看。产品特点安全:不会引发非200响应精确:允许键入成功和错误响应弹性:可配置的重试和超时smart:尊重Retry-After标头小:不会破坏您的捆绑包安装npm i gretchen --save浏览器支持gretchen面向所有现代浏览器。为了支持IE11,您需要polyfill fetch , Promise和Object.assign 。对于Node.js,您需要fetch和AbortController 。快速链接用法使用fetch ,您可以执行以下操作: const
gretchen-master.zip
预估大小:17个文件
gretchen-master
文件夹
.github
文件夹
workflows
文件夹
cd.yml
642B
ci.yml
628B
index.ts
4KB
.prettierignore
5B
lib
文件夹
handleTimeout.ts
461B
utils.ts
360B
155.48KB
文件大小:
评论区