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

Function toWeb

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

Source from the content-addressed store, hash-verified

1229 * @since 4.0.0
1230 */
1231export const toWeb = (self: HttpClientRequest, options?: {
1232 readonly signal?: AbortSignal | undefined
1233}): Effect.Effect<Request, Url.UrlError> =>
1234 Effect.contextWith((context) =>
1235 Effect.fromResult(toWebResult(self, {
1236 context: context,
1237 signal: options?.signal
1238 }))
1239 )

Callers

nothing calls this directly

Calls 1

toWebResultFunction · 0.70

Tested by

no test coverage detected