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

Function exitResponse

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

Source from the content-addressed store, hash-verified

390 * @since 4.0.0
391 */
392export const exitResponse = <E>(exit: Exit.Exit<Response.HttpServerResponse, E>): Response.HttpServerResponse => {
393 if (exit._tag === "Success") {
394 return exit.value
395 }
396 return causeResponseStripped(exit.cause)[0]
397}

Callers

nothing calls this directly

Calls 1

causeResponseStrippedFunction · 0.85

Tested by

no test coverage detected