()
| 427 | } |
| 428 | |
| 429 | get arrayBuffer(): Effect.Effect< |
| 430 | ArrayBuffer, |
| 431 | HttpClientError.HttpClientError |
| 432 | > { |
| 433 | return Effect.flatMap(this.loaded, (body) => { |
| 434 | const bytes = this.bytes(body) |
| 435 | return bytes instanceof Uint8Array |
| 436 | ? Effect.succeed(bytes.buffer as ArrayBuffer) |
| 437 | : Effect.fail(bytes) |
| 438 | }) |
| 439 | } |
| 440 | |
| 441 | get json(): Effect.Effect<Schema.Json, HttpClientError.HttpClientError> { |
| 442 | return Effect.flatMap(this.text, (text) => |
no test coverage detected