Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌐 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

About

Lightweight HTTP web server built from scratch in Python using sockets to handle client requests and responses.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages