class

D4::HTTPSource

Inherits D4::Source < Reference < Object

Seekable remote source backed by validated HTTP byte-range requests. A bounded LRU of blocks is cached; no full-file download is implicit.

Constructors

new(url : String | URI, *, block_size : Int32 = 65536, cache_blocks : Int32 = 64, connect_timeout : Time::Span = 10.seconds, read_timeout : Time::Span = 30.seconds)
Source

Instance methods

close
Source
closed?
Source
read_at(offset : Int64, buffer : Bytes) : Int32
Source
size
Source