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
zip
gretchen-master.zip 预估大小:17个文件
folder
gretchen-master 文件夹
folder
.github 文件夹
folder
workflows 文件夹
file
cd.yml 642B
file
ci.yml 628B
file
index.ts 4KB
file
.prettierignore 5B
folder
lib 文件夹
file
handleTimeout.ts 461B
file
utils.ts 360B
file
errors.ts 500B
file
fetch.ts 181B
file
handleRetry.ts 1KB
file
README.md 9KB
folder
tests 文件夹
file
handleRetry.test.ts 4KB
file
utils.test.ts 963B
file
index.test.ts 7KB
file
handleTimeout.test.ts 1KB
file
.gitignore 84B
file
package-lock.json 669KB
file
package.json 2KB
zip 文件大小:155.48KB