- multi-threaded using thread pool
- support for GET requests only
- support for static content only
- support for mime types
- support for 200, 206 and 404 HTTP response status codes
- support for single range HTTP GET requests (RFC 2616)
-
clone repository from github
$ git clone https://github.com/gdz/simpleHttpServer.git simpleHttpServer
-
create virtual enviroment
$ virtualenv rt
$ source rt/bin/activate
-
install requirements for server
$ pip install -r requirements.txt
-
run server
$ rt/bin/python run.py
-
open latest Chrome browser
- open url: http://localhost:5555/home
- Command line parameters for run.py
- Add dynamic url routes and views
- Templating
- And so much more ...
TIPS:
- this is fork from
https://github.com/ercchy/simpleHttpServer.git