EXTENSION
Link
public extension Link
Properties
kind
var kind: LinkKind
How this link should be handled, derived from its rel and type.
Pure and deterministic: it performs no network access and reads only this link. Evaluated in order —
- an
image/typeisLinkKind/inlineImage - a
downloadorauthorization-responserelisLinkKind/external - a scheme other than
http/httpsisLinkKind/external - any other declared
typeisLinkKind/external - otherwise (no
type, or the HAAPI media type) it isLinkKind/haapi: per the HAAPI data model a link with an absenttypeis a HAAPI resource that must be fetched with an authenticated request.
Whether the target really is the configured identity server is enforced at follow time by
HaapiManager.followLink(_:), not here — classification never inspects the link's origin.