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

Function exitResponse

packages/effect/src/unstable/http/HttpServerError.ts:369–374  ·  view source on GitHub ↗
(exit: Exit.Exit<Response.HttpServerResponse, E>)

Source from the content-addressed store, hash-verified

367 * @since 4.0.0
368 */
369export const exitResponse = <E>(exit: Exit.Exit<Response.HttpServerResponse, E>): Response.HttpServerResponse => {
370 if (exit._tag === "Success") {
371 return exit.value
372 }
373 return causeResponseStripped(exit.cause)[0]
374}

Callers

nothing calls this directly

Calls 1

causeResponseStrippedFunction · 0.85

Tested by

no test coverage detected