Skip to content

httpBytes

httpBytes(url, options?): Promise<Buffer<ArrayBufferLike>>

Defined in: packages/core/src/utils/http.ts:33

Download a binary response (images) with the same timeout, retry, and Retry-After semantics as httpJson.

string

Absolute request URL.

HttpRequestOptions = {}

Method, headers, timeout, retries, logger.

Promise<Buffer<ArrayBufferLike>>

The raw response bytes.