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, resource, useSession?, options?): Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>;
    handleServerTiming<T>(name, description, fn, withServerTiming): Promise<T>;
}

Properties

contentTypeParser?: ContentTypeParser
helia: Helia

Methods