Skip to content

shells12333/HTTP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic HTTP Server

Developed to understand socket programming, multithreading, and the HTTP protocol.

Functionality

POST /files/: Create or update a file with the request body. GET /files/: Retrieve the contents of a file. GET /echo/: Echo back the message. GET /user-agent: Return the User-Agent from the request headers.

Usage

Run the server with the base directory as an argument:

python server.py <base_directory>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages