gout icon indicating copy to clipboard operation
gout copied to clipboard

gout to become the Swiss Army Knife of the http client @^^@---> gout 是http client领域的瑞士军刀,小巧,强大,犀利。具体用法可看文档,如使用迷惑或者API用得不爽都可提issues

Results 38 gout issues
Sort by recently updated
recently updated
newest added

Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.7.7 to 1.9.1. Release notes Sourced from github.com/gin-gonic/gin's releases. v1.9.1 Changelog BUG FIXES fix Request.Context() checks #3512 SECURITY fix lack of escaping of filename in Content-Disposition #3556...

dependencies

Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20210630005230-0f9fa26af87c to 0.1.0. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/sys&package-manager=go_modules&previous-version=0.0.0-20210630005230-0f9fa26af87c&new-version=0.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: #...

dependencies

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20200622213623-75b288015ac9 to 0.1.0. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/crypto&package-manager=go_modules&previous-version=0.0.0-20200622213623-75b288015ac9&new-version=0.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: #...

dependencies

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20200114155413-6afb5195e5aa to 0.7.0. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=golang.org/x/net&package-manager=go_modules&previous-version=0.0.0-20200114155413-6afb5195e5aa&new-version=0.7.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: #...

dependencies

# 进行压力测试时发生的问题 在我使用jmeter进行压力测试的时候,一开始还好好的,但是到了后面就发生了异常,报错内容为EOF。 示例代码如下: ```go err = gout.POST(config.Url). SetProxy(config.Proxy). SetTimeout(30 * time.Second). Debug(true). SetHeader(head). Code(&request.ResultCode). SetBody(&request.ResultBody). Do() ``` 在网上寻求帮助时,可能是因为服务器关闭连接的时候又接收到新的请求,导致此次请求被服务器拒绝而失败。当时他给出的解决方案是设置request的close属性为true,例:req.close = true。 所以,我想请问下,使用gout包的时候,如何解决这个问题。

##TODO 在使用SetHeader/SetQuery/SetJSON/SetXML/SetYaml/SetForm/SetWWWForm 等接口时。 传递struct 该使用何种tag。整理一个表格,更清晰。

## Bug Report 在SSE等流式响应模式中(返回时间很长),需要获取Response 如下代码,会报错 ```golang response, err := gout.New(). WithContext(ctx). SetTimeout(100 * time.Second). SetMethod("POST"). SetURL(url). SetJSON(request). Response() if err != nil { panic(err.Error()) } defer response.Body.Close() // 读取Response.Body for...

http的代理 setProxy("https://username:[email protected]:7890") socks5 是 这样吗setSocks5("socks5://username:[email protected]:7890")