()
| 856 | } |
| 857 | |
| 858 | get json(): Effect.Effect<Schema.Json, HttpServerError> { |
| 859 | return Effect.flatMap(this.text, (text) => |
| 860 | Effect.try({ |
| 861 | try: () => text === "" ? null : JSON.parse(text), |
| 862 | catch: (cause) => requestParseError(this, undefined, cause) |
| 863 | })) |
| 864 | } |
| 865 | |
| 866 | get urlParamsBody(): Effect.Effect<UrlParams.UrlParams, HttpServerError> { |
| 867 | return Effect.flatMap(this.bytes, (bytes) => |
nothing calls this directly
no test coverage detected