MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromWeb

Function fromWeb

packages/effect/src/unstable/http/HttpServerRequest.ts:412–413  ·  view source on GitHub ↗
(request: globalThis.Request)

Source from the content-addressed store, hash-verified

410 * @since 4.0.0
411 */
412export const fromWeb = (request: globalThis.Request): HttpServerRequest =>
413 new ServerRequestImpl(request, removeHost(request.url))
414
415/**
416 * Converts an `HttpServerRequest` into an `HttpClientRequest`.

Callers

nothing calls this directly

Calls 1

removeHostFunction · 0.70

Tested by

no test coverage detected