This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Very simple HTTP server. | |
Upon a GET or POST request, returns a json object with the route of the request | |
and the data of the request body. | |
""" | |
import socket | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import time |