An open API service indexing awesome lists of open source software.

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

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.