UNPKG

@helia/verified-fetch

Version:

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

13 lines 648 B
import { BasePlugin } from './plugin-base.js'; import type { PluginContext } from './types.js'; /** * Accepts an `ipns://...`, `https?://<ipnsname>.ipns.<domain>`, or `https?://<domain>/ipns/...` URL as a string and * returns a `Response` containing a raw IPNS record. */ export declare class IpnsRecordPlugin extends BasePlugin { readonly id = "ipns-record-plugin"; readonly codes: never[]; canHandle({ cid, accept, query, byteRangeContext }: PluginContext): boolean; handle(context: PluginContext & Required<Pick<PluginContext, 'byteRangeContext'>>): Promise<Response>; } //# sourceMappingURL=plugin-handle-ipns-record.d.ts.map