设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

gout v0.1.0发布,golang实现的http客户端

2020-7-14 11:11| 发布者: joejoe0332| 查看: 710| 评论: 0|原作者: oschina|来自: oschina

摘要: 项目地址 https://gitee.com/guonaihong/gout https://github.com/guonaihong/gout changlog #226bench:设置Rate(压测频率),Number和Duration会有误差(pr:#227)#231明确SetBody, BindBody传递nil指针返回错误(pr:#2 ...

项目地址

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()
}

酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部