Easy to use and make fake response over http/https
Just three steps as follows
- clone this project
git clone https://github.com/tongyy/python-httpserver.git
- Run build.sh script (This step is for https protocal)
sh buils.sh
- Run startHttpServer.sh/startHttpsServer.sh/startHttpBasicAuthServer.sh script
sh startHttpServer.sh
- 👍 Open your browser to test (https://localhost:8001/res.json , http://localhost:8002/res.json and http://localhost:8003/res.json with Basic Authentication(default tony/1234)
Fake Response
You can put what you want. "res.json,xxx.xml.." in the resource folder, and then your url would be http://localhost:8001/{xxx.xml}