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

Function withScope

packages/effect/src/http/HttpClient.ts:2129–2132  ·  view source on GitHub ↗
(
  self: HttpClient.With<E, R>
)

Source from the content-addressed store, hash-verified

2127 * @since 4.0.0
2128 */
2129export const withScope = <E, R>(
2130 self: HttpClient.With<E, R>
2131): HttpClient.With<E, R | Scope.Scope> =>
2132 transformResponse(self, Effect.provideServiceEffect(RequestScope, Effect.scope))
2133
2134/**
2135 * Adds `HttpTraceContext.CurrentBaggage` to outgoing requests as a W3C `baggage` header.

Callers

nothing calls this directly

Calls 1

transformResponseFunction · 0.85

Tested by

no test coverage detected