Skip to content

Instantly share code, notes, and snippets.

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

Fernando Silveira swrh

🏠
Working from home
View GitHub Profile
@swrh
swrh / serve_http.py
Created May 12, 2016 12:49 — forked from pankajp/serve_http.py
Simple Python HTTP Server with multi-threading and partial-content support
#! /usr/bin/env python
# Standard library imports.
from SocketServer import ThreadingMixIn
import BaseHTTPServer
import SimpleHTTPServer
import sys
import json
import os
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext,