IFClite TypeScript API
    Preparing search index...

    Interface HttpBlobStoreOptions

    interface HttpBlobStoreOptions {
        baseUrl: string;
        fetch?: {
            (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        hasher?: BlobHasher;
        token?: string;
    }
    Index
    baseUrl: string

    Base URL like https://collab.ifclite.com; we append /blobs/<hash>.

    fetch?: {
        (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Override fetch (mainly for tests).

    Type Declaration

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | Request | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | Request | URL
        • Optionalinit: RequestInit

        Returns Promise<Response>

    hasher?: BlobHasher

    Hasher used when deduping client-side before PUT.

    token?: string

    Bearer token forwarded as Authorization: Bearer ….