Skip to content

Naren456/HTTP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Multithreaded HTTP Server

This project is a lightweight, multi-threaded HTTP/1.1 server implemented in Python using only the standard library. It serves static HTML, text, and image files from a themed resources/ directory and supports JSON file uploads. The server handles multiple client connections concurrently using a configurable thread pool and includes basic security features like path traversal protection, host header validation, and MIME type enforcement.


Build and Run Instructions

Requirements

  • Python 3.7 or higher
  • No external libraries required (only Python standard library)

Running the Server

  1. Clone or download the repository.

  2. Ensure the resources directory exists in the project root. This folder contains themed resources such as HTML pages, text files, and images (e.g., ae_86_front.png, ae_86_interior.jpg).

  3. Start the server:

    python server.py 
    # Defaults: host=127.0.0.1, port=8080, max_threads=10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors