Documentation - v20.0.0-dev
    Preparing search index...

    A file to load: its URL, its name when the URL does not end with it (a blob: URL), and the headers of its download when the server asks for some (an Authorization).

    interface FileSource {
        headers?: Record<string, string>;
        name?: string;
        url: string;
    }
    Index

    Properties

    Properties

    headers?: Record<string, string>

    HTTP headers of its download, given to the reader (see FileReadOptions.headers).

    name?: string

    Name of the file, whose extension picks the loader; default: the URL's last segment.

    url: string