@inrupt/solid-client
    Preparing search index...

    Function getResourceInfoWithAcl

    • Experimental: fetch a Resource's metadata and its associated Access Control List.

      This is an experimental function that fetches both a Resource's metadata, the linked ACL Resource (if available), and the ACL that applies to it if the linked ACL Resource is not available (if accessible). This can result in many HTTP requests being executed, in lieu of the Solid spec mandating servers to provide this info in a single request.

      If the Resource's linked ACL Resource could not be fetched (because it does not exist, or because the authenticated user does not have access to it), acl.resourceAcl will be null. If the applicable Container's ACL is not accessible to the authenticated user, acl.fallbackAcl will be null.

      Parameters

      • url: string

        URL of the SolidDataset to fetch.

      • Optionaloptions: { fetch?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response> }

        Optional parameter options.fetch: An alternative fetch function to make the HTTP request, compatible with the browser-native fetch API.

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

      Returns Promise<WithResourceInfo & {} & WithAcl>

      A Resource's metadata and the ACLs that apply to the Resource, if available to the authenticated user.