AndyTheFactory / gzip_ranged_simple_httpserver

SimpleHTTPServer with support for Range requests and GZip Compressing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Simple HTTP Server with Gzip cmpression and Ranges

Built mainly to test some corner cases in newspaper4k

Usage

python -m gzip_http_server 8080 --encoding=gzip --max-file-size=10000

or

docker run -v $PWD:/tmp/share -p 8000:8000 andythefactory/gzip-range-server --encoding=gzip --max-file-size=10000

Features

  • Gzip compression
  • Range requests
  • Max file size will FORCE a ranged response if the file is larger than the max file size.

About

SimpleHTTPServer with support for Range requests and GZip Compressing


Languages

Language:Python 97.7%Language:Dockerfile 2.3%