Skip to content

A toy HTTP server written in Python for understanding how web servers work.

License

Notifications You must be signed in to change notification settings

ansal/http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-server

This is a simple web server written in Python. I built this to understand how HTTP works. Some more info behind this server can be found in my blog - http://blog.ansals.me/2019/04/07/writing-a-simple-web-server-in-python/

The web server contains three parts -

  1. TCP Server httpserver/tcpserver.py
  2. HTTP Server httpserver/httpserver.py
  3. File system handler httpserver/handler.py

A few examples using the above classes can be found in the examples folder. To run the web server from the examples folder, run python3 examples/http_file_server.py

About

A toy HTTP server written in Python for understanding how web servers work.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages