Skip to main content

download

Download arbitrary data from any URL, including IPFS URIs.

Usage

Pass a URL (or IPFS URI) to this method to download the data at the URL.

const uri = "ipfs://example";
const data = await storage.download(uri);

Configuration

url

The URL of the data to download.

Must be a string.

Return Value

Returns a Response object.

{
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
}