Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRangeReader ¶
type HTTPRangeReader = http_range_http.HTTPRangeReader
HTTPRangeReader uses HTTP requests with Range headers to implement io.ReadSeeker and io.ReaderAt. It is not concurrency safe.
Uses net/http on native and http_range_fetch on js.
The method of the request is changed to HEAD for Size(). Call SetSize to avoid a HEAD request.
func NewHTTPRangeReader ¶
func NewHTTPRangeReader( ctx context.Context, le *logrus.Entry, fileUrl string, headers map[string][]string, disableCache, verbose bool, ) (*HTTPRangeReader, error)
HTTPRangeReader uses HTTP requests with Range headers to implement io.ReadSeeker and io.ReaderAt. It is not concurrency safe.
Uses net/http on native and http_range_fetch on js.
The method of the request is changed to HEAD for Size(). Call SetSize to avoid a HEAD request.
if le is set, requests will be logged verbose logs successful as well as errored http requests