Skip to content

Instantly share code, notes, and snippets.

@kriszyp
Created January 20, 2010 21:20
Show Gist options
  • Save kriszyp/282279 to your computer and use it in GitHub Desktop.
Save kriszyp/282279 to your computer and use it in GitHub Desktop.
require("./jsgi-node").start(function(request){
var requestBody = request.input.read().decodeToString();
return {
status:200,
headers:{},
body:["echo: " + requestBody]
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment