@helia/verified-fetch
Version:
A fetch-like API for obtaining verified & trustless IPFS content on the web
12 lines • 510 B
TypeScript
import { BasePlugin } from './plugin-base.js';
import type { PluginContext } from './types.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(context: PluginContext): boolean;
handle(context: PluginContext & Required<Pick<PluginContext, 'byteRangeContext'>>): Promise<Response>;
}
//# sourceMappingURL=plugin-handle-car.d.ts.map