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

Function withRedactedNames

packages/effect/src/http-api/HttpApiClient.ts:644–651  ·  view source on GitHub ↗
(
  effect: Effect.Effect<A, E, R>,
  redactedNames: HttpApi.EndpointRedactedNames
)

Source from the content-addressed store, hash-verified

642 })
643
644const withRedactedNames = <A, E, R>(
645 effect: Effect.Effect<A, E, R>,
646 redactedNames: HttpApi.EndpointRedactedNames
647): Effect.Effect<A, E, R> =>
648 effect.pipe(
649 Effect.updateService(UrlParams.CurrentRedactedNames, (names) => [...names, ...redactedNames.query]),
650 Effect.updateService(Headers.CurrentRedactedNames, (names) => [...names, ...redactedNames.headers])
651 )
652
653/**
654 * Constructs a type-safe client for an HTTP API using the `HttpClient` service,

Callers 1

onEndpointFunction · 0.85

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected