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

Function toServerResponse

packages/platform/node/src/NodeHttpServerRequest.ts:30–33  ·  view source on GitHub ↗
(self: HttpServerRequest)

Source from the content-addressed store, hash-verified

28 * @since 4.0.0
29 */
30export const toServerResponse = (self: HttpServerRequest): Http.ServerResponse => {
31 const res = (self as any).response
32 return typeof res === "function" ? res() : res
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected