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

Function constructor

packages/platform/node/src/NodeHttpIncomingMessage.ts:54–64  ·  view source on GitHub ↗
(
    source: Http.IncomingMessage,
    onError: (error: unknown) => E,
    remoteAddressOverride?: Option.Option<string>
  )

Source from the content-addressed store, hash-verified

52 readonly remoteAddressOverride?: Option.Option<string> | undefined
53
54 constructor(
55 source: Http.IncomingMessage,
56 onError: (error: unknown) => E,
57 remoteAddressOverride?: Option.Option<string>
58 ) {
59 super()
60 this[IncomingMessage.TypeId] = IncomingMessage.TypeId
61 this.source = source
62 this.onError = onError
63 this.remoteAddressOverride = remoteAddressOverride
64 }
65
66 get headers() {
67 return Headers.fromInput(this.source.headers as any)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected