http_range

package
v0.51.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL