Provides a seekable and asynchronous read interface for reqwest HTTP streams that allows
you to seek forward or backward in an HTTP stream without having to download all the
intermediate data. This is useful for handling large files over HTTP where random access is
required.
Example
use Client;
use ;
async
Notes
- This implementation assumes the server supports HTTP range requests. Servers that do not support range requests are still usable, however certain seeking features will be unavailable.
- If the file size cannot be determined, the implementation will attempt to fetch data without bounds, relying on the server to handle the request appropriately.
Errors
- Returns
UnexpectedEofif attempting to read past the end of the file. - Returns
InvalidInputif seeking to a negative position. - Returns
Unsupportedif seeking from the end when the file size is unknown.