Helia Verified Fetch
    Preparing search index...

    Contains common components and functions required by plugins to handle a request.

    • Read-Only: Plugins can read but shouldn't rewrite them.
    • Persistent: Relevant even after the request completes (e.g., logging or metrics).
    interface PluginOptions {
        contentTypeParser?: ContentTypeParser;
        helia: Helia;
        logger: ComponentLogger;
        getBlockstore(
            cid: CID,
            resource: string | CID<unknown, number, number, Version>,
            useSession?: boolean,
            options?: AbortOptions,
        ): Blockstore;
        handleServerTiming<T>(
            name: string,
            description: string,
            fn: () => Promise<T>,
            withServerTiming: boolean,
        ): Promise<T>;
    }
    Index

    Properties

    contentTypeParser?: ContentTypeParser
    helia: Helia

    Methods