Effect CommunityEC
Effect Community13mo ago
5 replies
Magellol

Difference Between `HttpServer.serve` and `HttpServer.serveEffect`

What is the difference between HttpServer.serve and HttpServer.serveEffect — my understanding is the latter returns an effect instead of a layer. I'm trying to leverage that effect to retrieve the port of the running server and log it out but despite the log and port showing up on the logs, curl-ing the server fails for program2, the server isn't reachable but works for program

I'm probably doing something wrong so let me know. I'll provide the code snippet in thread. Thank you!
Was this page helpful?