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

Function toWeb

packages/effect/src/unstable/http/HttpServerRequest.ts:1088–1096  ·  view source on GitHub ↗
(self: HttpServerRequest, options?: {
  readonly signal?: AbortSignal | undefined
})

Source from the content-addressed store, hash-verified

1086 * @since 4.0.0
1087 */
1088export const toWeb = (self: HttpServerRequest, options?: {
1089 readonly signal?: AbortSignal | undefined
1090}): Effect.Effect<Request, RequestError> =>
1091 Effect.contextWith((context) =>
1092 Effect.fromResult(toWebResult(self, {
1093 context,
1094 signal: options?.signal
1095 }))
1096 )

Callers

nothing calls this directly

Calls 1

toWebResultFunction · 0.70

Tested by

no test coverage detected