UNPKG

@helia/verified-fetch

Version:

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

12 lines 462 B
import { BasePlugin } from './plugin-base.js'; import type { PluginContext } from '../index.js'; /** * Accepts a `CID` and returns a `Response` with a body stream that is a CAR * of the `DAG` referenced by the `CID`. */ export declare class CarPlugin extends BasePlugin { readonly id = "car-plugin"; canHandle({ accept }: PluginContext): boolean; handle(context: PluginContext): Promise<Response>; } //# sourceMappingURL=plugin-handle-car.d.ts.map