@helia/verified-fetch
Version:
A fetch-like API for obtaining verified & trustless IPFS content on the web
12 lines • 570 B
TypeScript
import { BasePlugin } from './plugin-base.js';
import type { PluginContext } from './types.js';
/**
* Handles `dag-json` content, including requests with Accept: `application/vnd.ipld.dag-cbor` and `application/cbor`.
*/
export declare class JsonPlugin extends BasePlugin {
readonly id = "json-plugin";
readonly codes: number[];
canHandle({ cid, accept, byteRangeContext }: PluginContext): boolean;
handle(context: PluginContext & Required<Pick<PluginContext, 'byteRangeContext'>>): Promise<Response>;
}
//# sourceMappingURL=plugin-handle-json.d.ts.map