基于 Python Twisted, 用于快速搭建提供 HTTP 协议的旁路服务.
- 基于 Python, 部署维护简单
- 集成了日志及错误码
- 接口与框架解耦, 文件即接口
- 支持通过路径来匹配接口
- 支持动态增减改接口
git clone https://github.com/Phypeng/StupidServer.git
cd StupidServer
git checkout main
yum install python3 -y
pip3 install twisted
python3 http_service.py
apt-get install python3 -y
pip3 install twisted
python3 http_service.py
安装 Python3
打开 CMD 输入 : pip3 install twisted
双击 http_service.py
-
重新载入接口
curl --location --request POST '127.0.0.1:8811/reload_interface'
-
列举所有接口
curl --location '127.0.0.1:8811/list_interface'