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

Function addressFormattedWith

packages/effect/src/unstable/http/HttpServer.ts:232–238  ·  view source on GitHub ↗
(
  f: (address: string) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

230 * @since 4.0.0
231 */
232export const addressFormattedWith = <A, E, R>(
233 f: (address: string) => Effect.Effect<A, E, R>
234): Effect.Effect<A, E, HttpServer | R> =>
235 Effect.flatMap(
236 HttpServer,
237 (server) => f(formatAddress(server.address))
238 )
239
240/**
241 * Logs the formatted address of the current HTTP server.

Callers 1

HttpServer.tsFile · 0.85

Calls 2

formatAddressFunction · 0.85
fFunction · 0.50

Tested by

no test coverage detected