Class: ActiveFedora::CleanConnection

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/active_fedora/clean_connection.rb

Defined Under Namespace

Classes: CleanResult

Instance Method Summary collapse

Instance Method Details

#get(*args) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/active_fedora/clean_connection.rb', line 3

def get(*args)
  result = __getobj__.get(*args) do |req|
    prefer_headers = Ldp::PreferHeaders.new(req.headers["Prefer"])
    prefer_headers.omit = prefer_headers.omit | omit_uris
    req.headers["Prefer"] = prefer_headers.to_s
  end
  CleanResult.new(result)
end