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

Method json

packages/ui/native/src/NativeHttpClient.ts:441–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

439 }
440
441 get json(): Effect.Effect<Schema.Json, HttpClientError.HttpClientError> {
442 return Effect.flatMap(this.text, (text) =>
443 Effect.try({
444 try: () => text === "" ? null : JSON.parse(text),
445 catch: (cause) => this.decodeError("The body isn't JSON", cause)
446 }))
447 }
448
449 get urlParamsBody(): Effect.Effect<
450 UrlParams.UrlParams,

Callers 15

registryClientFunction · 0.45
respondFunction · 0.45
Miniflare.test.tsFile · 0.45
fetchMethod · 0.45
fetchMethod · 0.45
Json.test.tsFile · 0.45
Client.test.tsFile · 0.45
runMethod · 0.45
executeStreamMethod · 0.45

Calls 2

decodeErrorMethod · 0.95
parseMethod · 0.45

Tested by 7

respondFunction · 0.36
userPostsFunction · 0.36
invokeFunction · 0.36
makeHttpFunction · 0.36
tokenResponseFunction · 0.36
clientLayerFunction · 0.36
clientLayerFunction · 0.36