Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Enaldiev Turim

View GitHub Profile
@Turim
Turim / server.py
Created Aug 13, 2020 — forked from mdonkers/server.py
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):
You can’t perform that action at this time.