( f: (address: string) => Effect.Effect<A, E, R> )
| 230 | * @since 4.0.0 |
| 231 | */ |
| 232 | export 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. |
no test coverage detected