Package-level declarations

Types

Link copied to clipboard
object IriUtils

Utilities for working with IRIs (Internationalized Resource Identifiers) in the context of the Solid protocol.

Functions

Link copied to clipboard
fun encodeUri(uri: URI): URI

Re-encodes uri so every hierarchical component is a valid RFC 3986 sequence, without disturbing percent-triplets that are already present.

Link copied to clipboard

Parses raw into a URI, applying percent-encoding to any illegal characters while preserving percent-triplets that are already valid.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the URI of the WAC / ACP access-control resource advertised by Link: <...>; rel="acl", or null if absent.

Link copied to clipboard

Returns the set of HTTP methods listed in the Allow response header, or an empty set if the header is absent. Example: Allow: GET, HEAD, OPTIONS, PUT, PATCH, DELETE

Link copied to clipboard

Extension functions for parsing Solid-specific HTTP headers from OkHttp SolidHeaders. All functions return null / empty when the header is absent.

Link copied to clipboard
Link copied to clipboard

Returns the URI of the description resource advertised by Link: <...>; rel="describedby", or null if absent.

Link copied to clipboard

Returns the full EntityTag from the ETag response header — including a weak validator (W/"..."), unlike getETag which reports only strong tags. Returns null when the header is absent or blank.

Link copied to clipboard

Returns the bare ETag value from the ETag response header, with surrounding quotes stripped, suitable for use as an If-Match validator.

Link copied to clipboard

Returns the URI of the LDN inbox advertised by Link: <...>; rel="http://www.w3.org/ns/ldp#inbox", or null if absent. Solid Protocol §4.1.1 allows this on storage roots and on WebID URLs; agents may also expose it via an ldp:inbox triple in their profile.

Link copied to clipboard

Returns the Last-Modified header value, or null if absent.

Link copied to clipboard

Returns all rel values listed in Link headers as a flat list of strings.

Link copied to clipboard

Returns the set of type URIs advertised via Link: <uri>; rel="type" headers. Used to identify resource types such as ldp:BasicContainer or pim:Storage.

Link copied to clipboard

Returns the Location header value as a URI, or null if absent. This is set on 201 Created responses.

Link copied to clipboard

Returns the OIDC issuer URI advertised by Link: <...>; rel="http://www.w3.org/ns/solid/terms#oidcIssuer", or null if absent.

Link copied to clipboard

Returns the URI of the storage owner advertised by Link: <...>; rel="http://www.w3.org/ns/solid/terms#owner", or null if absent.

Link copied to clipboard

Returns the URI of the storage description resource advertised by Link: <...>; rel="http://www.w3.org/ns/solid/terms#storageDescription", or null if absent.

Link copied to clipboard

Returns the parsed WacAllow from the WAC-Allow response header, or null if the header is absent or malformed.

Link copied to clipboard
Link copied to clipboard

Returns true when the Link header contains rel="type" <http://www.w3.org/ns/pim/space#Storage>, indicating this resource is a Solid pod storage root.

Link copied to clipboard

The current instant as an ISO-8601 UTC string truncated to seconds — the form every dcterms:created / dcterms:modified and as:published literal this library writes takes, so timestamps compare as strings and round-trip through RDF unchanged.

Link copied to clipboard

Reads this InputStream to a UTF-8 string and closes it.