Skip to content

Lunilux24/WebServer-DEMO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-Server-DEMO

Minimalist web server built from scratch using Python's low-level socket module.

Web Server 1

This server is a simple webserver that recieves and processes an HTTP request before sending back a response. Prior to this, the client establishes a TCP connection with the server through a 3-way handshake through the use of sockets.

You can run the server with python webserver1.py and after navigating to http://localhost:8888 you will see the following in your server logs.

Image

Web Server 2: WSGI Implementation

In order to use web frameworks, we use a protocol called WSGI so that frameworks and servers can communicate with eachother. Using a web framework like Flask we can see the following instead:

Image

About

Minimalist web server built from scratch using Python's low-level socket module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages