PyHttp is an http server written from scratch in python to understand the http protocol .As of now what PyHttp does is:-
- Supports GET , HEAD , DELETE
- Supports status codes 200 , 400 , 501
- Capability of handling multiple conections
- Renders images and videos in the browser
- Allows you to set cookies
- Allows you to set caching
To compile and run the program, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/your-repo.git
- Run the httpproto file by running the following the command :
python httpproto.py
- For sending GET request,run 127.0.0.1:8080/hello.html
- For sending HEAD request,use curl -I 127.0.0.1:8080/hello.html
- For sending DELETE request,use curl -X "DELETE" '127.0.0.1:8080/hello.html'
- python 3.6 or higher
- Adding the http access control
- Adding the http authentication
- Adding the http caching
- Adding the http cookies
- Last but not the least,if everything goes well, i also want to build a framework on top of it. Something similar to aiohttp
- This project is under development.Feel free to contribute to it.