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

Function toJSON

packages/effect/src/http/HttpServerResponse.ts:1467–1476  ·  view source on GitHub ↗
(this: HttpServerResponse)

Source from the content-addressed store, hash-verified

1465 [TypeId]: TypeId,
1466 [ErrorReporter.ignore]: true,
1467 toJSON(this: HttpServerResponse) {
1468 return {
1469 _id: "HttpServerResponse",
1470 status: this.status,
1471 statusText: this.statusText,
1472 headers: redact(this.headers),
1473 cookies: this.cookies.toJSON(),
1474 body: this.body.toJSON()
1475 }
1476 }
1477}
1478
1479const makeResponse = (options: {

Callers

nothing calls this directly

Calls 2

redactFunction · 0.90
toJSONMethod · 0.65

Tested by

no test coverage detected