Skip to main content

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 days ago (1.0.7)
type alias ResponseInterceptor

响应拦截器

Definition

(
resp: unknown,
reqconfig: InterceptorConfig,
) => unknown | Promise<unknown>

Add Package

deno add jsr:@advanced/fetcher

Import symbol

import { type ResponseInterceptor } from "@advanced/fetcher";

---- OR ----

Import directly with a jsr specifier

import { type ResponseInterceptor } from "jsr:@advanced/fetcher";

Add Package

npx jsr add @advanced/fetcher

Import symbol

import { type ResponseInterceptor } from "@advanced/fetcher";

Add Package

yarn dlx jsr add @advanced/fetcher

Import symbol

import { type ResponseInterceptor } from "@advanced/fetcher";

Add Package

pnpm dlx jsr add @advanced/fetcher

Import symbol

import { type ResponseInterceptor } from "@advanced/fetcher";

Add Package

bunx jsr add @advanced/fetcher

Import symbol

import { type ResponseInterceptor } from "@advanced/fetcher";