Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1.01 KB

File metadata and controls

67 lines (45 loc) · 1.01 KB

🌐 Lightweight HTTP Web Server

A lightweight HTTP web server built from scratch in Python using socket programming. It accepts client connections, processes HTTP requests, and serves static HTML content.


✨ Features

  • 🌐 Built using Python sockets
  • 📥 Handles HTTP GET requests
  • 📄 Serves static HTML pages
  • ⚡ Lightweight and easy to understand
  • 🚀 No external frameworks

🛠️ Tech Stack

  • Python
  • Socket Programming
  • HTTP
  • HTML

📂 Project Structure

web-server/
├── main.py
├── index.html
└── README.md

🚀 Getting Started

Clone the repository:

git clone https://github.com/hariom888/web-server.git
cd web-server

Run the server:

python main.py

Open your browser and visit:

http://localhost:8080

📚 Learning Outcomes

This project helped me understand:

  • TCP socket programming
  • HTTP request and response handling
  • Client-server communication
  • Building a basic web server from scratch