Module: ImageSize::URIReader::HTTPChunkyReader

Includes:
ChunkyReader
Included in:
ImageSize::URIReader, RangeReader
Defined in:
lib/image_size/uri_reader.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from ChunkyReader

#[], #chunk_size

Methods included from Reader

#fetch, open_with_uri, #stream, #unpack, #unpack1

Instance Method Details

#chunk_range_header(i) ⇒ Object



20
21
22
# File 'lib/image_size/uri_reader.rb', line 20

def chunk_range_header(i)
  { 'Range' => "bytes=#{chunk_size * i}-#{(chunk_size * (i + 1)) - 1}" }
end