MCPcopy Index your code
hub / github.com/Effect-TS/effect / nodeResponse

Function nodeResponse

packages/platform-node/src/internal/httpServer.ts:174–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172 ) {
173 let nodeResponse_: Http.ServerResponse | undefined = undefined
174 const nodeResponse = () => {
175 if (nodeResponse_ === undefined) {
176 nodeResponse_ = new Http.ServerResponse(nodeRequest)
177 nodeResponse_.assignSocket(socket as any)
178 nodeResponse_.on("finish", () => {
179 socket.end()
180 })
181 }
182 return nodeResponse_
183 }
184 const upgradeEffect = Socket.fromWebSocket(Effect.flatMap(
185 lazyWss,
186 (wss) =>

Callers

nothing calls this directly

Calls 1

endMethod · 0.65

Tested by

no test coverage detected