Re:Show HN: Welcome, Cot: the Rust web framework for lazy de...
by orangeboats on Tuesday February 18, 2025 @11:33AM
(#43091662)
Your BodyFactory example isn't even functionally the same as the quoted code snippet. Nowhere is the Body::fixed(rendered) equivalent seen, for example.
Re:Show HN: Welcome, Cot: the Rust web framework for lazy de...
by m4tx on Tuesday February 18, 2025 @01:25PM
(#43093263)
That's one of the issues explicitly mentioned in the article ("Request Handler API is far from being ergonomic"). This will get better in the nearest future as it's a major pain point, I'm just thinking of the best API for doing request/responses.
no thank you. if you like it good for you, for me this looks worse than
Body body = BodyFactory.newInstance(BodyConfiguration.OK)
which is still SHORTHER and less cancer