Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Roux sudocode1

🎯
Focusing
View GitHub Profile
@mdonkers
mdonkers / server.py
Created Mar 29, 2017
Simple Python 3 HTTP server for logging all GET and POST requests
View server.py
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):