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

Function toJSON

packages/effect/src/http/HttpClientRequest.ts:109–119  ·  view source on GitHub ↗
(this: HttpClientRequest)

Source from the content-addressed store, hash-verified

107 [TypeId]: TypeId,
108 ...Inspectable.BaseProto,
109 toJSON(this: HttpClientRequest): unknown {
110 return {
111 _id: "HttpClientRequest",
112 method: this.method,
113 url: UrlParams.redactUrl(this.url),
114 urlParams: this.urlParams,
115 hash: this.hash,
116 headers: redact(this.headers),
117 body: this.body.toJSON()
118 }
119 },
120 pipe() {
121 return pipeArguments(this, arguments)
122 }

Callers

nothing calls this directly

Calls 2

redactFunction · 0.90
toJSONMethod · 0.65

Tested by

no test coverage detected