(chunk: string)
| 355 | } |
| 356 | |
| 357 | private bytes(chunk: string): Uint8Array | HttpClientError.HttpClientError { |
| 358 | if (!this.binary) return (encoder ??= new TextEncoder()).encode(chunk) |
| 359 | const bytes = Base64.decode(chunk) |
| 360 | return Result.isSuccess(bytes) |
| 361 | ? bytes.success |
| 362 | : this.decodeError("Native sent invalid base64", bytes.failure) |
| 363 | } |
| 364 | |
| 365 | /** The whole body, as native sent it. */ |
| 366 | private get loaded(): Effect.Effect<string, HttpClientError.HttpClientError> { |
no test coverage detected