9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement

Call Signature

ts
function getBinary(url: string): Promise<ArrayBuffer>;

Defined in: http/index.d.ts:61

Downloads the content from the specified URL as binary and returns an ArrayBuffer.

Parameters

ParameterTypeDescription
urlstringThe URL to request from.

Returns

Promise<ArrayBuffer>

Call Signature

ts
function getBinary(options: HttpRequestOptions): Promise<ArrayBuffer>;

Defined in: http/index.d.ts:67

Downloads the content from the specified URL as binary and returns an ArrayBuffer.

Parameters

ParameterTypeDescription
optionsHttpRequestOptionsAn object that specifies various request options.

Returns

Promise<ArrayBuffer>

Previous
request