Differences Between Schema-Driven HttpApi and Router-Based API in @effect/platform
i'm trying to understand the difference in @effect/platform's Schema driven HttpApi and the router based api.
With HttpApi, are you unable to set cookies? Is that too low level for the abstraction? If you just return an HttpServerResponse from the handler, then you get an
Effect<HttpServerResponse...>
Effect<HttpServerResponse...>
which would be a bit anti the schema pattern, right?
I'm trying to get the best of both worlds, i need to control cookies (very limited) on the server responses but i'd love the swagger functionality and schema type safety