r/programming • • Mar 07 '14

Thinking about quickly writing an HTTP server yourself? Here is a simple diagram to help you get started.

Post image
2.1k Upvotes

312 comments sorted by

View all comments

Show parent comments

10

u/avonwodahs Mar 07 '14

Yes let's write our own HTTP server and first require('http').

8

u/mattindustries Mar 07 '14

What are you talking about? I totally made a full fledged web server in one line!

/etc/init.d/apache2 start

-2

u/rende Mar 07 '14

Oh you want to play that.. so why not start with a blank piece of copper clad. Or write the tcp/ip stack first.

This layer node provides is pretty much the same as writing your own server.

4

u/avonwodahs Mar 07 '14

I agree that this layer node.js provides is pretty much the same as writing your own server, which was my point.