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

Function toWeb

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

Source from the content-addressed store, hash-verified

1263 * @since 4.0.0
1264 */
1265export const toWeb = (self: HttpServerRequest, options?: {
1266 readonly signal?: AbortSignal | undefined
1267}): Effect.Effect<Request, RequestError> =>
1268 Effect.contextWith((context) =>
1269 Effect.fromResult(toWebResult(self, {
1270 context,
1271 signal: options?.signal
1272 }))
1273 )

Callers

nothing calls this directly

Calls 1

toWebResultFunction · 0.70

Tested by

no test coverage detected