{"repo":"guonaihong/gout","free":true,"listed":false,"github":"https://github.com/guonaihong/gout","clone":"git clone https://github.com/guonaihong/gout.git","description":"gout to become the Swiss Army Knife of the http client @^^@---> gout 是http client领域的瑞士军刀，小巧，强大，犀利。具体用法可看文档，如使用迷惑或者API用得不爽都可提issues","language":"Go","stars":1330,"topics":["http-client","http-request","go","golang","httpclient","request","http-requests"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"gout gout 是go写的http 客户端，为提高工作效率而开发 构架 feature 支持设置 GET/PUT/DELETE/PATH/HEAD/OPTIONS 支持设置请求 http header(可传 struct,map,array,slice 等类型) 支持设置 URL query(可传 struct,map,array,slice,string 等类型) 支持设置 json 编码到请求 body 里面(可传struct, map, string, []byte 等类型) 支持设置 xml 编码到请求 body 里面(可传struct, string, []byte 等类型) 支持设置 yaml 编码到请求 body 里面(可传struct, map, string, []byte 等类型) 支持设置 protobuf 编码到请求 body里面(可传struct) 支持设置 form-data(可传 struct, map, array, slice 等类型) 支持设置 x-www-form-urlencoded(可传 struct,map,array,slice 等类型) 支持设置 io.Reader，uint/uint8/uint16...int/int8...string...[]byte...float32,float64 至请求 body 里面 支持解析响应body里面的json,xml,yaml至结构体里(BindJSON/BindXML/BindYAML) 支持解析响应body的内容至io.Writer, uint/uint8...int/int8...string...[]byte...float32,float64 支持解析响应header至结构体里 支持接口性能benchmark，可控制压测一定次数还是时间，可控制压测频率 支持retry-backoff，可以指定重试条件 支持发送裸http数据包 支持导出curl命令 传入自定义 http.Client 支持请求中间件( ) 支持响应中间件ResponseUse 支持设置chunked数据格式发送 支持body, header的数据校验 支持通过build tag自由选择不同的json序列化方式(可选jsoniter,go json,sonic等) 等等更多 演示 内容 Installation example quick start API Examples GET POST PUT DELETE PATH HEAD OPTIONS GET POST PUT DELETE PATH HEAD OPTIONS template Query Parameters http header Do not convert http headers Set request header Parsing the response header get all header data valid responseUse http body body Set the data to the http request body Parse the response body into a variable json Serialize json to request body Parsed http response body in json format Do not escape html characters yaml xml form-data x-www-form-ur","default_branch":null,"files":null,"tree":[],"storefront":"/r/guonaihong","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/guonaihong/gout/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}