Hnz/httpseek

httpseek is a go package that implements io.Seeker and io.SectionReader interface on HTTP Response bodies.

★ 1Forks 0GoGitHub ↗Compare

README

httpseek

Version Go.Dev reference Go Report Card GitHub Workflow Status

httpseek is a go package that implements io.Seeker and io.ReaderAt interface on HTTP Response bodies. This allows the client to read parts of a file without downloading it entirely.

To achieve this the HTTP Range request is used. If the HTTP server does not support this, the request will fail.

To prevent lots of tiny http request a buffer is implemented.

Install library

go get github.com/hnz/httpseek

License

MIT Licensed. See LICENSE.md.

Contributors

Hnz

Issues