Ktistec::Model::Linked
Constants
Log = ::Log.for("ktistec.json_ld")
the only logging in this module is related to dereferencing and mapping JSON-LD.
Class methods
check_origin!(iri : String, final_url : String) : Nil
Raises unless a dereferenced document's IRI and the location it was fetched from have the same origin.
json_response?(response : HTTP::Client::Response) : Bool
Returns true if the response carries an ActivityPub /
JSON-LD / JSON content type.
local?(iri : String) : Bool
SourceInstance methods
cached?
Sourceiri_matches?(requested_iri : String) : Bool
Returns true if this instance's IRI matches the requested IRI.
Override in subclasses to implement custom matching heuristics.
local?
Sourceto_s(io : IO)
Source