fedify
fedify copied to clipboard
Recognize JSON-LD context provided in a HTTP `Link` header
Currently, fetchDocumentLoader() simply ignores a Link header and always returns a RemoteDocument with contextUrl: null:
However, the JSON-LD specification, section 4.9, Interpreting JSON as JSON-LD
describes a method for attaching a JSON context to a plain JSON object via an HTTP Link header. We need to implement this specification.