SolidResourceClient
Reads, creates, updates and deletes resources on the authenticated user's Solid pod by communicating with the Android Solid Services app over IPC.
Obtain an instance via Solid.getResourceClient.
All public methods are suspend functions and must be called from a coroutine. Each returns its result or throws a SolidException subtype on failure — including precondition failures (SolidException.SolidAppNotFoundException, SolidException.SolidServiceConnectionException).
See also
Functions
Creates a member inside containerUri by POSTing, letting the server allocate the child URI — and therefore needing only Append, not Write.
Recursively deletes a container and all of its contents.
Creates the container and any missing ancestors, bottom-up. Idempotent.
Fetches only the HTTP headers for the resource at resourceUrl via HTTP HEAD.
HEADs a public resource with no Authorization header.
Lists a container's direct children in a single GET.
Reports the access the user effectively holds on uri, from its WAC-Allow header.
Reads an LDP container from the pod, with each contained resource enriched by its own HTTP HEAD metadata (carried in each SolidSourceReference.headMetadata).
Reads a public resource with no Authorization header — most usefully a foreign WebID profile document, which a pod may reject when presented a foreign issuer's token.
Opens the resource at uri as a live stream.
Hot Flow of the IPC service connection state. Emits true once the bound service connects and false if it disconnects.