Updating Code with @effect/platform: Migrating HttpClient and HttpClientRequest

Are there examples anywhere of how to update code using @effect/platform with the changes to HttpClient and HttpClientRequest?

In particular, I can't figure out how to migrate the following:
  HttpClientRequest.get(url).pipe(
    HttpClient.fetchOk,
    HttpClientResponse.json,
    ....


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?
Was this page helpful?