Updating Code with @effect/platform: Migrating HttpClient and HttpClientRequest
Are there examples anywhere of how to update code using
In particular, I can't figure out how to migrate the following:
Is there an analog for
@effect/platform with the changes to HttpClient and HttpClientRequest?In particular, I can't figure out how to migrate the following:
Is there an analog for
fetchOk in the new API? I know you can do Effect.flatMap((response) => response.json), for a HttpClientResponse.json analog, but surely there must still be a helper to avoid you having to write your own status filter?