Dashboard › opencode › Distillation
0de6bbeb-cd7a-4d3e-a1b3-bd23152b9242["lore_tm_v1_L8m--6ZHXqPnexc5eYjnnQARBVw5fWK-q35FyxdIEVM"]
Date: September 9, 2026
/home/byk/.local/share/opencode/repos/github.com/Effect-TS/effect-smol/packages/effect/src/unstable/http/FetchHttpClient.ts:55-59, request options are read from fiber.context.mapUnsafe.get(RequestInit.key) ?? {}; configured headers are merged via Headers.merge(Headers.fromInput(options.headers), request.headers), giving request headers precedence, and "content-length" is removed with Headers.remove(headers, "content-length").FetchHttpClient.ts:60-80, send(body) wraps fetch(url, {...options, method: request.method, headers, body, duplex: request.body._tag === "Stream" ? "half" : undefined, signal}) in Effect.tryPromise; fetch failures become HttpClientError.HttpClientError containing a HttpClientError.TransportError with request and cause, while successful responses are converted using HttpClientResponse.fromWeb(request, response).FetchHttpClient.ts:82-91, body dispatch sends request.body.body for "Raw" and "Uint8Array", request.body.formData for "FormData", converts "Stream" via Stream.toReadableStreamEffect(request.body.stream) before sending, and calls send(undefined) for requests without one of those body forms.