I am very interested to learn the HTTP protocol in depth as well as understand the working of NodeJS streams up-close. I figured out that the best way to do this would be to develop an HTTP server in Node.
My question is, as the HTTP protocol itself is based on TCP, would it be possible to use the Node's net
module and consider TCP protocol fully implemented and ready at disposal, and then use it to write an HTTP server that aims at becoming something like Node's http
module? How should I go about it?
Some guidelines would be greatly appreciated. PS. I have the RFC2616 printed and ready for reference :)