@versatiles/container
Version:
A client library for reading VersaTiles containers
11 lines (10 loc) • 503 B
TypeScript
import type { Reader } from './interfaces.js';
/**
* Creates a function capable of reading data from a specified URL, which can be used
* to read data chunks in an HTTP GET request. This is particularly useful for
* operations such as streaming or handling large data in segments.
*
* @param url - The URL from which data will be read.
* @returns A `Reader` function that asynchronously reads a specified chunk of data from the URL.
*/
export default function getHTTPReader(url: string): Reader;