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

Function toJSON

packages/effect/src/unstable/http/HttpServerResponse.ts:1324–1333  ·  view source on GitHub ↗
(this: HttpServerResponse)

Source from the content-addressed store, hash-verified

1322 [TypeId]: TypeId,
1323 [ErrorReporter.ignore]: true,
1324 toJSON(this: HttpServerResponse) {
1325 return {
1326 _id: "HttpServerResponse",
1327 status: this.status,
1328 statusText: this.statusText,
1329 headers: redact(this.headers),
1330 cookies: this.cookies.toJSON(),
1331 body: this.body.toJSON()
1332 }
1333 }
1334}
1335
1336const makeResponse = (options: {

Callers

nothing calls this directly

Calls 2

redactFunction · 0.90
toJSONMethod · 0.65

Tested by

no test coverage detected