moco:愚蠢的 http 模拟实用程序(golang)

时间:2021-07-01 14:05:32
【文件属性】:
文件名称:moco:愚蠢的 http 模拟实用程序(golang)
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-01 14:05:32
Go 莫科 mocos在西班牙语中的意思是“鼻涕”,这可能是您对这段代码的期望。 moco让您轻松“模拟”http 请求,您只需要将 json 文件传递​​给程序。 moco -f FILENAME [-p PORT] -f标志是强制性的, -p标志是可选的。 json 文件应遵循以下结构: 例子 { "/api/foo": { "headers": { "Content-type": "application/json", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "X-Requested-With" }, "statusCode": 200, "body": { title: "Some cool stu
【文件预览】:
moco-master
----.gitignore(25B)
----main.go(3KB)
----README.md(1KB)
----fixtures()
--------invalid.json(289B)
--------fixtures.txt(15B)
--------nobody.json(69B)
--------example.json(1KB)
----main_test.go(3KB)
----LICENSE(1KB)
----Makefile(188B)

网友评论