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

Function constructor

packages/platform/browser/src/BrowserHttpClient.ts:216–222  ·  view source on GitHub ↗
(source: globalThis.XMLHttpRequest, onError: (error: unknown) => E)

Source from the content-addressed store, hash-verified

214 readonly onError: (error: unknown) => E
215
216 constructor(source: globalThis.XMLHttpRequest, onError: (error: unknown) => E) {
217 super()
218 this[HttpIncomingMessage.TypeId] = HttpIncomingMessage.TypeId
219 this.source = source
220 this.onError = onError
221 this._rawHeaderString = source.getAllResponseHeaders()
222 }
223
224 private _rawHeaderString: string
225 private _rawHeaders: Record<string, string | Array<string>> | undefined

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected