Skip to content

overtherain/simpleHttpServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple multi-threaded file-based HTTP server

Functionality:
  • 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)
Install:
  1. clone repository from github

    $ git clone https://github.com/gdz/simpleHttpServer.git simpleHttpServer
    
  2. create virtual enviroment

    $ virtualenv rt
    
    $ source rt/bin/activate
    
  3. install requirements for server

    $ pip install -r requirements.txt
    

Run:

  1. run server

    $ rt/bin/python run.py
    
  2. open latest Chrome browser

Possibilities:

  • 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

About

Simple HTTP Server is a learning project about HTTP Protocol and how server is handling requests.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.6%
  • Other 2.4%