MCPcopy Create free account
hub / github.com/Effect-TS/effect / withXHRArrayBuffer

Function withXHRArrayBuffer

packages/platform/browser/src/BrowserHttpClient.ts:104–111  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

102 * @since 4.0.0
103 */
104export const withXHRArrayBuffer = <A, E, R>(
105 self: Effect.Effect<A, E, R>
106): Effect.Effect<A, E, R> =>
107 Effect.provideService(
108 self,
109 CurrentXHRResponseType,
110 "arraybuffer"
111 )
112
113/**
114 * Service tag for the `XMLHttpRequest` constructor used by the browser XHR HTTP client.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected