https://github.com/andythefactory/gzip_ranged_simple_httpserver
SimpleHTTPServer with support for Range requests and GZip Compressing
https://github.com/andythefactory/gzip_ranged_simple_httpserver
Last synced: 3 months ago
JSON representation
SimpleHTTPServer with support for Range requests and GZip Compressing
- Host: GitHub
- URL: https://github.com/andythefactory/gzip_ranged_simple_httpserver
- Owner: AndyTheFactory
- Created: 2024-03-02T20:53:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-04T18:42:06.000Z (almost 2 years ago)
- Last Synced: 2025-08-29T04:34:30.668Z (4 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Python Simple HTTP Server with Gzip cmpression and Ranges
Built mainly to test some corner cases in newspaper4k
## Usage
```bash
python -m gzip_http_server 8080 --encoding=gzip --max-file-size=10000
```
or
```bash
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.