SolidHeaders
A case-insensitive, HTTP-client-agnostic view of response headers.
Replaces direct exposure of OkHttp's Headers in the resource model so that Shared — and its consumers (the client SDK and third-party apps) — carry no okhttp dependency on their public API. api builds this from okhttp3.Headers.toMultimap(); the header accessors in shared.util (getETag, getWacAllow, getAclUri, …) read from it.
Lookups are case-insensitive, matching HTTP header semantics (and OkHttp's Headers).
Functions
Returns the URI of the WAC / ACP access-control resource advertised by Link: <...>; rel="acl", or null if absent.
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
Extension functions for parsing Solid-specific HTTP headers from OkHttp SolidHeaders. All functions return null / empty when the header is absent.
Returns the URI of the description resource advertised by Link: <...>; rel="describedby", or null if absent.
Returns the bare ETag value from the ETag response header, with surrounding quotes stripped, suitable for use as an If-Match validator.
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.
Returns the Last-Modified header value, or null if absent.
Returns all rel values listed in Link headers as a flat list of strings.
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.
Returns the Location header value as a URI, or null if absent. This is set on 201 Created responses.
Returns the OIDC issuer URI advertised by Link: <...>; rel="http://www.w3.org/ns/solid/terms#oidcIssuer", or null if absent.
Returns the URI of the storage owner advertised by Link: <...>; rel="http://www.w3.org/ns/solid/terms#owner", or null if absent.
Returns the URI of the storage description resource advertised by Link: <...>; rel="http://www.w3.org/ns/solid/terms#storageDescription", or null if absent.
Returns the parsed WacAllow from the WAC-Allow response header, or null if the header is absent or malformed.
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.
The underlying multimap (original casing preserved).