模拟http服务器,每次您第一次访问路径时,它都会要求您提供json响应。
mockser的Python项目详细描述
模拟程序
模拟http服务器。每次第一次访问路径时,都会要求您提供json响应。
安装
pip install mockser
命令行界面
usage: mockser [-h] [-p PORT]
Mock HTTP server. Asks you for a JSON response everytime you visit a path for the first time.
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Port to run the server on. Defaults to 8080.