()
| 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, (_) => |
no test coverage detected