Effect CommunityEC
Effect Community2y ago
3 replies
Tim Smart

Upcoming Breaking Change: HTTP Modules in `@effect/platform` Reorganized for Flat Structure

Hello @1110198784417345608 , a breaking change to the http modules will be released shortly.

From the upcoming blog post:

---

The HTTP modules in @effect/platform have been reorganized to have a flat structure, similar to the
effect
package.

Instead of a single import, you now import the specific modules you need:

import { HttpClient, HttpClientRequest, HttpClientResponse } from "@effect/platform"

HttpClientRequest.get("/").pipe(
  HttpClient.fetchOk,
  HttpClientResponse.json,
)
Was this page helpful?