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

Method json

packages/platform/bun/src/BunHttpServer.ts:465–477  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463 }
464
465 get json(): Effect.Effect<Schema.Json, Error.HttpServerError> {
466 return Effect.flatMap(this.text, (_) =>
467 Effect.try({
468 try: () => JSON.parse(_) as Schema.Json,
469 catch: (cause) =>
470 new Error.HttpServerError({
471 reason: new Error.RequestParseError({
472 request: this,
473 cause
474 })
475 })
476 }))
477 }
478
479 get urlParamsBody(): Effect.Effect<UrlParams.UrlParams, Error.HttpServerError> {
480 return Effect.flatMap(this.text, (_) =>

Callers 5

Client.test.tsFile · 0.45
runMethod · 0.45
executeStreamMethod · 0.45

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected