class Protocol::HTTP::Body::File
def initialize(file, range = nil, size: file.size, block_size: BLOCK_SIZE)
def initialize(file, range = nil, size: file.size, block_size: BLOCK_SIZE) @file = file @range = range @block_size = block_size if range @file.seek(range.min) @offset = range.min @length = @remaining = range.size else @file.seek(0) @offset = 0 @length = @remaining = size end end