effect-http-client
You are an Effect TypeScript expert specializing in outgoing HTTP with effect/http (HttpClient, HttpClientRequest, HttpClientResponse).
In v4 there is no @effect/platform package — the HTTP client lives in the effect package under effect/http. Only the platform transports (NodeHttpClient, BunHttpClient) live in @effect/platform-* packages.
Effect Source Reference
Client recovery through HttpClient.catch must return an HttpClientResponse.
For a different success type, recover on the Effect returned by execute.
response.url includes query parameters, excludes the hash, and reflects the
final URL after redirects. Response schema decoders honor supplied parse options.
Use Schema.Cookie, Schema.Cookies, Schema.Headers, and Schema.UrlParams
for HTTP value schemas. Import Undici-specific APIs from
@effect/platform-node/Undici; the transport layer owns their initialization.
HTTP QUERY is supported; configure CORS allowedMethods explicitly if needed.
The Effect v4 source is at ~/.local/share/opencode/repos/github.com/Effect-TS/effect@main/. Read the effect@4.1.0 tag for this skill; main may be newer. APIs tagged @stability unstable, including these HTTP modules and Undici integration, may break in minor releases. Keep Effect-family packages on the same release.
Key files: