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

    Function getSolidDatasetWithAcl

    • Experimental: fetch a SolidDataset and its associated Access Control List.

      This is an experimental function that fetches both a Resource, the linked ACL Resource (if available), and the ACL that applies to it if the linked ACL Resource is not available. 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. Therefore, and because this function is still experimental, prefer [[getSolidDataset]] instead.

      If the Resource does not advertise the ACL Resource (because the authenticated user does not have access to it), the acl property in the returned value will be null. acl.resourceAcl will be undefined if the Resource's linked ACL Resource could not be fetched (because it does not exist), and acl.fallbackAcl will be null if the applicable Container's ACL is not accessible to the authenticated user.

      Parameters

      • url: string | Url

        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<Readonly<{}> & WithResourceInfo & {} & WithAcl>

      A SolidDataset and the ACLs that apply to it, if available to the authenticated user.