@helia/verified-fetch
    Preparing search index...

    Interface PluginContext

    Represents the ephemeral, modifiable state used by the pipeline.

    • Mutable: Evolves as you walk the plugin chain.
    • Shared Data: Allows plugins to communicate partial results, discovered data, or interim errors.
    • Ephemeral: Typically discarded once fetch(...) completes.
    interface PluginContext {
        accept: AcceptHeader[];
        blockstore: Blockstore;
        headers: Headers;
        ipfsRoots: CID<unknown, number, number, Version>[];
        options?: Omit<VerifiedFetchInit, "signal"> & AbortOptions;
        range?: RangeHeader;
        resource: string;
        serverTiming: ServerTiming;
        terminalElement: UnixFSEntry;
        ttl: number;
        url: URL;
        onProgress?(evt: ProgressEvent): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    accept: AcceptHeader[]

    These are the response representations that are acceptable to return

    blockstore: Blockstore

    The blockstore is used to load data from the IPFS network

    headers: Headers

    Any passed headers from the fetch init arg

    ipfsRoots: CID<unknown, number, number, Version>[]
    options?: Omit<VerifiedFetchInit, "signal"> & AbortOptions

    Onward options to pass to async operations

    range?: RangeHeader

    If present the user requested a subset of bytes using the Range header

    resource: string

    The resource that was requested by the user

    serverTiming: ServerTiming

    Any async operations should be invoked using server timings to allow introspection by the user

    terminalElement: UnixFSEntry
    ttl: number
    url: URL

    Methods