@maplibre/native-ffi
    Preparing search index...

    Interface ResourceResponse

    The answer to a resource request.

    See mln_resource_response in the C API reference.

    interface ResourceResponse {
        bytes?: Uint8Array<ArrayBufferLike>;
        errorMessage?: string;
        errorReason?: ResourceErrorReason;
        etag?: string;
        expiresUnixMs?: bigint;
        modifiedUnixMs?: bigint;
        mustRevalidate?: boolean;
        retryAfterUnixMs?: bigint;
        status?: ResourceResponseStatus;
    }
    Index
    bytes?: Uint8Array<ArrayBufferLike>

    The resource, for ResourceResponseStatus.ok.

    errorMessage?: string

    A description of the error, for ResourceResponseStatus.error.

    errorReason?: ResourceErrorReason

    Why the request failed, for ResourceResponseStatus.error.

    etag?: string

    Empty when the resource has no ETag.

    expiresUnixMs?: bigint
    modifiedUnixMs?: bigint
    mustRevalidate?: boolean

    Whether the library must request the resource again before it reuses this copy.

    retryAfterUnixMs?: bigint

    When to retry, for ResourceResponseStatus.error.