Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple development server

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 node_modules
Octocat-spinner-32 tests
Octocat-spinner-32 tools
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 .npmignore
Octocat-spinner-32 COPYING
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 aurora.js
Octocat-spinner-32 file.js
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Octocat-spinner-32 proxy.js
Octocat-spinner-32 util.js
README.md
If affection lead a man to favor the less worthy in desert, let
him do it, without depraving or disabling the better deserver.
-- The Essays by Bacon, Sir Francis

Quick Start Guide

git clone https://github.com/4z3/deserver
node deserver &
f=/bin/bash
t="`file -ib $f`"
curl -X PUT --data-binary @$f -H "Content-Type:$t" http://127.0.0.1:1337$f
curl http://127.0.0.1:1337$f > $f # yay^_^
curl -X DELETE http://127.0.0.1:1337$f

STDOUT

On startup the server annources itself using the following format:

"Deserving HTTP -> on %s port %u\n", hostname, port

Each HTTP-request is reported using the following format:

"%s %s %u\n", method, url, statusCode
Something went wrong with that request. Please try again.