- ✔ simple
- ✔ upload
- ✔ download
- ✔ support python2, python3
# get code
$ git clone https://github.com/freelamb/simple_http_server.git
# enter directory
$ cd simple_http_server
# run server
$ python simple_http_server.py 8000
# run as docker container
# 1.build the image('.' below refer to the root path of this project)
docker build -t freelamb/simple_http_server .
# 2.run the container using the image built just now in docker
docker run
--name simple_http_server \
-p 8000:8000 \
-v /opt/data:/opt/data \
-d freelamb/simple_http_server:latest
- support Multi-threaded
- add docker images
- add to pypi
- Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
- Fork the repository_ on GitHub to start making your changes to the master branch (or branch off of it).
- Write a test which shows that the bug was fixed or that the feature works as expected.
- Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.
https://github.com/tualatrix/tools/blob/master/SimpleHTTPServerWithUpload.py