> You should check out @pwernersbach's excellent MicroAsyncHttpServer library. > It's slightly faster than httpx when multithreading, and it's nearly 100% > API-compatible with stdlib's AsyncHttpServer. The difference is that it > doesn't load bodies entirely into memory, and instead lets you stream them. I > worked with @pwernersbach a month or two ago to clean up the library a bit > and make it more usable so I could use it in a web framework I was writing.
@termer, HappyX uses asynchttpserver, httpx and microasynchttpserver 🙂 > When it comes to a fullstack framework in Nim, I simply am not comfortable > shipping the massive bundle sizes that Nim JS produces. It sounds fine until > you realize that, as of the time of posting, forum.js is 793.69KiB > uncompressed, and 114.94KiB gzipped, partially due to bizarre codegen like > this: HappyX have CLI that can build your JS file from 600+ Kb to 50-60 Kb ✌ > I agree almost 100% with what @Isofruit brought up. I would like to be > specific and say that I'd like .NET-style validation, with controller methods > mapping to routes, their arguments being used to generate JSON validators > automatically, and the ability to use annotations to customize it further. HappyX have powerful routing/mounting system and it support request models (at moment only JSON body)