Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 478 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 478 Bytes

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.