This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpServerRequest } from "@effect/platform"; | |
| import * as HttpServerResponse from "@effect/platform/HttpServerResponse"; | |
| import { Readable } from "node:stream"; | |
| import type { ReadableStream as WebReadableStream } from "node:stream/web"; | |
| import { Effect } from "effect"; | |
| /** | |
| * Converts an HttpServerRequest to a standard Web Request. | |
| */ | |
| export const ServerRequestToRequest = Effect.fn(function* ( |