Simple HTTP server backed by nothing more than a couple of dictionaries
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
.gitignore
README.md
simpleserver.py

README.md

simpleserver

One liner HTTP server.

serve('It works!', port=8080)

$ curl localhost:8080
It works!


serve({'a': {'b': {'c': 'This is /a/b/c'}}}, port=8080)

$ curl localhost:8080/a/b/c
This is /a/b/c