UNPKG

@helia/verified-fetch

Version:

A fetch-like API for obtaining verified & trustless IPFS content on the web

16 lines 620 B
import type { VerifiedFetchInit, Resource } from '../index.js'; import type { AbortOptions, ComponentLogger } from '@libp2p/interface'; import type { CID } from 'multiformats/cid'; interface GetRedirectResponse { cid: CID; resource: Resource; options?: Omit<VerifiedFetchInit, 'signal'> & AbortOptions; logger: ComponentLogger; /** * Only used in testing. */ fetch?: typeof globalThis.fetch; } export declare function getRedirectResponse({ resource, options, logger, cid, fetch }: GetRedirectResponse): Promise<null | Response>; export {}; //# sourceMappingURL=handle-redirects.d.ts.map