Module: ActiveFedora::File::Streaming
- Included in:
- ActiveFedora::File
- Defined in:
- lib/active_fedora/file.rb
Defined Under Namespace
Classes: FileBody
Instance Method Summary collapse
- #authorization_key ⇒ Object
- #headers(range, key, result = Hash.new) ⇒ Object
- #stream(range = nil) ⇒ Object
Instance Method Details
#authorization_key ⇒ Object
292 293 294 |
# File 'lib/active_fedora/file.rb', line 292 def self.ldp_source.client.http.headers.fetch("Authorization", nil) end |
#headers(range, key, result = Hash.new) ⇒ Object
299 300 301 302 303 |
# File 'lib/active_fedora/file.rb', line 299 def headers(range, key, result = Hash.new) result["Range"] = range if range result["Authorization"] = key if key result end |