自定义后端响应服务
docker pull czasg/custom
docker run --rm -it -e PORT=8080 -p 8080:8080 czasg/custom
1、自定义code
curl -v localhost:8080/custom?code=204
2、自定义header
curl -v localhost:8080/custom?header=cookie:custom&header=content-type:application/json
3、自定义body
curl -v localhost:8080/custom?body=你好
4、常用type
curl -v localhost:8080/custom?body={"route":"/custom","method":"GET"}&type=json
curl -o custom.zip localhost:8080/custom?body=test&type=zip