项目地址
https://gitee.com/guonaihong/gout
https://github.com/guonaihong/gout
changlog
- #226 bench:设置Rate(压测频率),Number和Duration会有误差(pr:#227)
- #231 明确SetBody, BindBody传递nil指针返回错误(pr:#232)
- #235 请求中间件设计(pr: #236)
- #234 新增gzip压缩请求body功能
- #233 打开debug模式,http.Header数据里面有%号效果优化(pr: #239)
重要特性(加入请求中间件设计)
请求中间件地址
https://github.com/antlabs/gout-middleware
请求中间件example
- 请求body使用gzip压缩
import ( "github.com/antlabs/gout-middleware/request" "github.com/guonaihong/gout" ) func main() { gout.POST(":6666/compress"). RequestUse(request.GzipCompress()). SetBody("hello world"). Do() }