MCPcopy
hub / github.com/Effect-TS/effect / toWeb

Function toWeb

packages/platform/src/HttpServerRequest.ts:273–280  ·  view source on GitHub ↗
(self: HttpServerRequest, options?: {
  readonly signal?: AbortSignal | undefined
})

Source from the content-addressed store, hash-verified

271 * @category conversions
272 */
273export const toWeb = (self: HttpServerRequest, options?: {
274 readonly signal?: AbortSignal | undefined
275}): Effect.Effect<Request, Error.RequestError> =>
276 Effect.flatMap(Effect.runtime<never>(), (runtime) =>
277 toWebEither(self, {
278 signal: options?.signal,
279 runtime
280 }))
281
282/**
283 * @since 1.0.0

Callers

nothing calls this directly

Calls 2

toWebEitherFunction · 0.85
runtimeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…