Skip to content

Instantly share code, notes, and snippets.

View MihanixA's full-sized avatar
🏠
Working from home

Mikhail S MihanixA

🏠
Working from home
View GitHub Profile
@MihanixA
MihanixA / server.py
Last active October 24, 2020 22:12 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET 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):