Re:Show HN: Javalin 1.0 – A Kotlin/Java web framework
by saurik on Tuesday November 07, 2017 @07:20PM
(#15649020)
And it isn't like this stuff is exactly trivial: with content transfer encodings, trailers, and exotic stuff like Expect: 100-continue, no one ever does this stuff correctly when they think they can just throw it together :/.
Creating a minimalist server is an interesting excercise, everyone should do it to see how it's done imo. BUT it's the stuff like parsing http headers, query parameters, and request bodies (formencoded, chunked files?) that make a solution like Jetty worth while. Again, writing an http parser is a valuable learning experience, but your boss really doesn't want you spending time on it, OR paying to support it going forward.
As an aside, it used to be a thing in the late 90's early 2000's for every application out there to have it's own "XYZ Transport Protocol" ie XYZTP, and it really, really sucked.