Skip to main content
This release is 3 versions behind 1.0.7 — the latest version of @advanced/fetcher. Jump to latest

Built and signed on GitHub Actions

Simple encapsulation based on web API fetch/基于 web fetch 的简单封装

This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
3 months ago (1.0.2)
f
createFetcher

辅助创建Fetcher工具函数

T
CreateFetcherOptions

createFetch的参数类型

v
defaultConfig

全局默认配置仅仅配置了content-type=application/json

c
Fetcher

发送请求核心class对象

I
FetherConfig

请求配置

T
RequestInterceptor

请求拦截器

T
ResponseInterceptor

响应拦截器

c
SyncEventDispatcher

同步事件分发器可以自定义事件类型 并获得类型提示