MCPcopy Index your code
hub / github.com/Effect-TS/effect / addressFormattedWith

Function addressFormattedWith

packages/platform/src/internal/httpServer.ts:153–159  ·  view source on GitHub ↗
(
  effect: (address: string) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

151
152/** @internal */
153export const addressFormattedWith = <A, E, R>(
154 effect: (address: string) => Effect.Effect<A, E, R>
155): Effect.Effect<A, E, Server.HttpServer | R> =>
156 Effect.flatMap(
157 serverTag,
158 (server) => effect(formatAddress(server.address))
159 )
160
161/** @internal */
162export const logAddress: Effect.Effect<void, never, Server.HttpServer> = addressFormattedWith((_) =>

Callers 1

httpServer.tsFile · 0.85

Calls 2

formatAddressFunction · 0.85
effectFunction · 0.50

Tested by

no test coverage detected