Skip to content

Instantly share code, notes, and snippets.

var http = require('http');
var nerve = exports;
nerve.serve = function(app, port, host) {
function send_html(content, status_code) {
this.sendHeader(status_code || 200, {"Content-Type":"text/html","Content-Length":content.length});
this.sendBody(content);
this.finish();
}