Module: ActiveFedora::File::Streaming
- Included in:
- ActiveFedora::File
- Defined in:
- lib/active_fedora/file/streaming.rb
Defined Under Namespace
Classes: FileBody
Instance Method Summary collapse
- #headers(range, key, result = {}) ⇒ Hash
-
#stream(range = nil) ⇒ Stream
An object that responds to each.
Instance Method Details
#headers(range, key, result = {}) ⇒ Hash
12 13 14 15 16 |
# File 'lib/active_fedora/file/streaming.rb', line 12 def headers(range, key, result = {}) result["Range"] = range if range result["Authorization"] = key if key result end |