Skip to content

czasg/custom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom

自定义后端响应服务

docker 安装并运行

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published