Milan Suk
Milan Suk
Hey, a middleware in /platform is simply a function `App -> App` (where `App` is an `Effect` of a concrete shape). So if a middleware doesn't modify the success channel,...
yeah, that's more or less what I meant, tho I didn't realised the `HttpMiddleware` is defined using `HttpApp.Default` (`(self: App.Default) => App.Default`) so unfortunately middlewares defined using `HttpMiddleware.make` can't be...
> setSecurity, setRequestBody, setRequestQuery, etc, are effectively middlewares, but are opinionated in what they can do where they can be applied (ApiGroup and Api) If we're talking about /platform `HttpMiddleware`s,...
Based on the way I personally use this lib right now, I'm thinking about refactoring (or maybe getting rid of completely) the `RouterBuilder` and get closer to the /rpc design....
Oh actually, I forgot there is [RouterBuilder.mapRouter](https://sukovanej.github.io/effect-http/effect-http/RouterBuilder.ts.html#maprouter). Therefore, even in the current state, you can apply middlewares using this mapping and if you create multiple router builders, you can use...
The `RouterBuilder.build` is enforcing all the endpoints are implemented on the type-level using a generic type parameter of the `RouterBuilder` describing remaining api endpoints. Therefore, the type information about endpoints...
Ah, my bad, now I got it. For the router builder, it's not possible to recognise different Api instances on the type level so there is at least this runtime...
I used to have a pluggable schema error formatter in the past but I got rid of it. I'll take a look and possibly reintroduce it.
Sounds pretty cool. I've also noticed some discussions in the Effect Discord about generating a CLI for a HTTP API and that would be possible for effect-http based apps as...
Hey, I don't know this one but it looks pretty cool 👍. As I don't have any experience with the lib and unfortunately I probably won't have a use-case for...