Skip to content

Instantly share code, notes, and snippets.

View iwishiwasaneagle's full-sized avatar

Jan-Hendrik Ewers iwishiwasaneagle

View GitHub Profile
@iwishiwasaneagle
iwishiwasaneagle / server.py
Created January 4, 2022 11:08 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET, PUT, and POST requests
#!/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):