I know that zio-http went into a lot of refactoring and breaking changes recently, so I would not mind opening a PR to add that to tapir, but I wanted to know if there was a reason for that first ?
My idea behind that is that Handler are a bit more composable than Http (we have a Flatmap on them), and that it could be worth exposing a way to retrieve handler from Tapir.
There’s no reason that I’d be aware of. Probably it was just created this way If there’s a more general concept that we could interpret into - let’s do that. Either as a replacement, or as a complementary API.
Ok thanks, I will either wait or work on the upgrade to the zio-http 3.0 release candidate and might introduce another method on tapir to retrieve an Handler instead, however they fixed the application of middleware in zio-http and we can now apply Handler middleware on HttpApp so there is less need for such a method yet