effect-io-ai

Package: @effect/platform-browser
Module: BrowserHttpClient

BrowserHttpClient.withXHRArrayBuffer

Runs an effect with CurrentXHRResponseType set to "arraybuffer" so the XHR HTTP client receives response bodies as ArrayBuffer values.

Signature

declare const withXHRArrayBuffer: <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>

Source

Since v4.0.0