Sha256: 13d9d9cdfda946bcbafc4699e1ba0155c443ae3b4968ba23934b652c7ef9fa7a
Contents?: true
Size: 649 Bytes
Versions: 5
Compression:
Stored size: 649 Bytes
Contents
module ActiveFedora # Use this connection judiciously, on fedora 4.3, these requests # may be 3-5x slower, and make a graph that takes longer to parse. class InboundRelationConnection < SimpleDelegator def get(*args) result = __getobj__.get(*args) do |req| prefer_headers = Ldp::PreferHeaders.new(req.headers["Prefer"]) prefer_headers.include = prefer_headers.include | include_uris req.headers["Prefer"] = prefer_headers.to_s yield req if block_given? end result end private def include_uris [ ::RDF::Vocab::Fcrepo4.InboundReferences ] end end end
Version data entries
5 entries across 5 versions & 1 rubygems