A mini http/https caching proxy server
- user should be able to configure their browser to use your proxy, and browse typical webpages (e.g., perform a Google Search, view the results, etc).
- proxy must cache responses of 200-OK responses to GET requests from the server, and should follow the rules of expiration time and/or revalidation in determining if proxy can server a request from its local cache
- proxy must handle multiple concurrent requests effectively and should use multiple threads as part of your strategy to do so.
- proxy will generate log in (/var/log/erss/proxy.log) which contains information of each request.
- GET
- POST
- CONNECT
go to src and make. After that, simply run
./main
The structure of the current project is:
Mini-HTTP-Proxy
|—docker-compose.yml
|—src
|—Dockerfile
|—main.c
|-other source files ...
To run the project, simply run
sudo docker-compose up
or
sudo docker compose up