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
307 308 309 |
# File 'lib/active_fedora/file.rb', line 307 def self.ldp_source.client.http.headers.fetch("Authorization", nil) end |
#headers(range, key, result = Hash.new) ⇒ Object
314 315 316 317 318 |
# File 'lib/active_fedora/file.rb', line 314 def headers(range, key, result = Hash.new) result["Range"] = range if range result["Authorization"] = key if key result end |