Skip to content

Instantly share code, notes, and snippets.

@zaid20485
zaid20485 / README.md
Created Dec 2, 2019 — forked from nitaku/README.md
Minimal JSON HTTP server in python
View README.md

A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.

python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}