Skip to content

Minimal HTTP server implemented from scratch in Python

Notifications You must be signed in to change notification settings

adorabilis/simple-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP Server

A minimal HTTP server implementation in Python with no dependencies. This is an educational project, not suitable for production use.

Supported Features

  • Basic HTTP/1.1 compliance
  • Static file serving
  • MIME type detection
  • Error handling (404, 500, 501)

Getting Started

  1. Place files in your web root directory
  2. Run server:
python server.py
  1. Access http://127.0.0.1:8888 in your browser

Future Improvements

  • Add support for POST, PUT, DELETE methods
  • Add concurrent request handling
  • Add CONFIG support (port binding, root directory)
  • Add CLI arguments support
  • Add logging system
  • Implement request body parsing
  • Implement basic caching
  • Implement persistent connections (Keep-Alive)
  • Support chunked transfers for large files

About

Minimal HTTP server implemented from scratch in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages