Home

Wsgiserver 0.2 -

Because it was single-file and pure Python, developers began checking the server directly into their projects. The "batteries included" philosophy of Python extended to deployment. You didn't need a systems administrator to configure Apache; you just needed import wsgiserver .

response = requests.get('http://127.0.0.1:8888/') assert response.status_code == 200 assert response.text == 'Hello, World!' wsgiserver 0.2

def __init__(self, host, port, application, workers=4): self.host = host self.port = port self.application = application self.workers = workers Because it was single-file and pure Python, developers

for key, value in headers: response += f"key: value\r\n".encode() response += b"\r\n" World!' def __init__(self