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

Function toWeb

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

Source from the content-addressed store, hash-verified

982 * @since 4.0.0
983 */
984export const toWeb = (self: HttpClientRequest, options?: {
985 readonly signal?: AbortSignal | undefined
986}): Effect.Effect<Request, Url.UrlError> =>
987 Effect.contextWith((context) =>
988 Effect.fromResult(toWebResult(self, {
989 context: context,
990 signal: options?.signal
991 }))
992 )

Callers

nothing calls this directly

Calls 1

toWebResultFunction · 0.70

Tested by

no test coverage detected