ht:使用Go编写的HTTP测试端点

时间:2021-05-04 08:29:39
【文件属性】:
文件名称:ht:使用Go编写的HTTP测试端点
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-04 08:29:39
Go H T 使用Go编写的HTTP测试端点。 向肯尼思·雷茨(Kenneth Reitz)出色的。 快速开始 $ git clone https://github.com/JeffPaine/ht.git $ cd ht/ $ PORT=8000 # set port we want ht to listen on (default: 8000) $ docker build -t ht . $ docker run -it --rm -p $PORT:$PORT --name ht-running ht 然后,在另一个Shell会话中运行 $ curl "localhost:$8000/user-agent" # see Endpoints for supported endpoints { "user-agent": "curl/7.35.0" } 终点 终点 描述 /
【文件预览】:
ht-master
----ht.go(3KB)
----Dockerfile(24B)
----LICENSE(1KB)
----ht_test.go(2KB)
----README.md(1KB)
----.gitignore(304B)

网友评论