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

Function toJSON

packages/effect/src/unstable/http/HttpClientRequest.ts:96–106  ·  view source on GitHub ↗
(this: HttpClientRequest)

Source from the content-addressed store, hash-verified

94 [TypeId]: TypeId,
95 ...Inspectable.BaseProto,
96 toJSON(this: HttpClientRequest): unknown {
97 return {
98 _id: "HttpClientRequest",
99 method: this.method,
100 url: this.url,
101 urlParams: this.urlParams,
102 hash: this.hash,
103 headers: redact(this.headers),
104 body: this.body.toJSON()
105 }
106 },
107 pipe() {
108 return pipeArguments(this, arguments)
109 }

Callers

nothing calls this directly

Calls 2

redactFunction · 0.90
toJSONMethod · 0.65

Tested by

no test coverage detected