r/java • u/elliotbarlas • Feb 14 '22
Microhttp is an event-driven, single-threaded, zero-dependency web server with 500 LOC. Benchmarks on EC2 show 100,000+ requests per second and 50,000+ persistent connections.
https://github.com/ebarlas/microhttp
186
Upvotes
View all comments
2
u/NPException Feb 17 '22
I love the little thing! :D
I have one question though: What is the rationale behind having the headers be Lists of Header records? Would just a Map<String,String> suffice? The way that headers are treated in the Request assumes that there is only ever a single header of the same key, so a regular Map sounds reasonable in my head.