Skip to content

Instantly share code, notes, and snippets.

View Siddhartha90's full-sized avatar

Siddhartha Siddhartha90

View GitHub Profile
@Siddhartha90
Siddhartha90 / server.py
Created January 10, 2020 00:20 — forked from raelmax/server.py
Python3 http.server com sleep
import http.server
import socketserver
from time import sleep
PORT = 5000
SLEEP_TIME = 6
class SlowHandler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
sleep(SLEEP_TIME)