| "source": "doc/api/synopsis.markdown", |
| "desc": "<p>An example of a <a href=\"http.html\">web server</a> written with Node which responds with 'Hello\nWorld':\n\n</p>\n<pre><code>var http = require('http');\n\nhttp.createServer(function (request, response) {\n response.writeHead(200, {'Content-Type': 'text/plain'});\n response.end('Hello World\\n');\n}).listen(8124);\n\nconsole.log('Server running at http://127.0.0.1:8124/');</code></pre>\n<p>To run the server, put the code into a file called <code>example.js</code> and execute\nit with the node program\n\n</p>\n<pre><code>> node example.js\nServer running at http://127.0.0.1:8124/</code></pre>\n<p>All of the examples in the documentation can be run similarly.\n</p>\n" |