4
4
<p align =" center " ><a href =" #features " >Features</a > section describes in detail about Resty capabilities</p >
5
5
</p >
6
6
<p align =" center " >
7
- <p align =" center " ><a href =" https://travis-ci.org/go-resty/resty " ><img src =" https://travis-ci.org/go-resty/resty.svg?branch=master " alt =" Build Status " ></a > <a href =" https://codecov.io/gh/go-resty/resty/branch/master " ><img src =" https://codecov.io/gh/go-resty/resty/branch/master/graph/badge.svg " alt =" Code Coverage " ></a > <a href =" https://goreportcard.com/report/go-resty/resty " ><img src =" https://goreportcard.com/badge/go-resty/resty " alt =" Go Report Card " ></a > <a href =" https://github.com/go-resty/resty/releases/latest " ><img src =" https://img.shields.io/badge/version-2.2 .0-blue.svg " alt =" Release Version " ></a > <a href =" https://pkg.go.dev/github.com/go-resty/resty/v2 " ><img src =" https://godoc.org/github.com/go-resty/resty?status.svg " alt =" GoDoc " ></a > <a href =" LICENSE " ><img src =" https://img.shields.io/github/license/go-resty/resty.svg " alt =" License " ></a > <a href =" https://github.com/avelino/awesome-go " ><img src =" https://awesome.re/mentioned-badge.svg " alt =" Mentioned in Awesome Go " ></a ></p >
7
+ <p align =" center " ><a href =" https://travis-ci.org/go-resty/resty " ><img src =" https://travis-ci.org/go-resty/resty.svg?branch=master " alt =" Build Status " ></a > <a href =" https://codecov.io/gh/go-resty/resty/branch/master " ><img src =" https://codecov.io/gh/go-resty/resty/branch/master/graph/badge.svg " alt =" Code Coverage " ></a > <a href =" https://goreportcard.com/report/go-resty/resty " ><img src =" https://goreportcard.com/badge/go-resty/resty " alt =" Go Report Card " ></a > <a href =" https://github.com/go-resty/resty/releases/latest " ><img src =" https://img.shields.io/badge/version-2.3 .0-blue.svg " alt =" Release Version " ></a > <a href =" https://pkg.go.dev/github.com/go-resty/resty/v2 " ><img src =" https://godoc.org/github.com/go-resty/resty?status.svg " alt =" GoDoc " ></a > <a href =" LICENSE " ><img src =" https://img.shields.io/github/license/go-resty/resty.svg " alt =" License " ></a > <a href =" https://github.com/avelino/awesome-go " ><img src =" https://awesome.re/mentioned-badge.svg " alt =" Mentioned in Awesome Go " ></a ></p >
8
8
</p >
9
9
<p align =" center " >
10
10
<h4 align =" center " >Resty Communication Channels</h4 >
13
13
14
14
## News
15
15
16
- * v2.2 .0 [ released] ( https://github.com/go-resty/resty/releases/tag/v2.2 .0 ) and tagged on Feb 23 , 2020.
16
+ * v2.3 .0 [ released] ( https://github.com/go-resty/resty/releases/tag/v2.3 .0 ) and tagged on May 20 , 2020.
17
17
* v2.0.0 [ released] ( https://github.com/go-resty/resty/releases/tag/v2.0.0 ) and tagged on Jul 16, 2019.
18
18
* v1.12.0 [ released] ( https://github.com/go-resty/resty/releases/tag/v1.12.0 ) and tagged on Feb 27, 2019.
19
19
* v1.0 released and tagged on Sep 25, 2017. - Resty's first version was released on Sep 15, 2015 then it grew gradually as a very handy and helpful library. Its been a two years since first release. I'm very thankful to Resty users and its [ contributors] ( https://github.com/go-resty/resty/graphs/contributors ) .
@@ -104,7 +104,7 @@ Resty author also published following projects for Go Community.
104
104
105
105
``` bash
106
106
# Go Modules
107
- require github.com/go-resty/resty/v2 v2.2 .0
107
+ require github.com/go-resty/resty/v2 v2.3 .0
108
108
```
109
109
110
110
## Usage
@@ -131,6 +131,7 @@ fmt.Println("Response Info:")
131
131
fmt.Println (" Error :" , err)
132
132
fmt.Println (" Status Code:" , resp.StatusCode ())
133
133
fmt.Println (" Status :" , resp.Status ())
134
+ fmt.Println (" Proto :" , resp.Proto ())
134
135
fmt.Println (" Time :" , resp.Time ())
135
136
fmt.Println (" Received At:" , resp.ReceivedAt ())
136
137
fmt.Println (" Body :\n " , resp)
@@ -141,6 +142,7 @@ fmt.Println("Request Trace Info:")
141
142
ti := resp.Request .TraceInfo ()
142
143
fmt.Println (" DNSLookup :" , ti.DNSLookup )
143
144
fmt.Println (" ConnTime :" , ti.ConnTime )
145
+ fmt.Println (" TCPConnTime :" , ti.TCPConnTime )
144
146
fmt.Println (" TLSHandshake :" , ti.TLSHandshake )
145
147
fmt.Println (" ServerTime :" , ti.ServerTime )
146
148
fmt.Println (" ResponseTime :" , ti.ResponseTime )
@@ -154,27 +156,29 @@ Response Info:
154
156
Error : <nil>
155
157
Status Code: 200
156
158
Status : 200 OK
157
- Time : 465.301137ms
158
- Received At: 2019-06-16 01:52:33.772456 -0800 PST m=+0.466672260
159
+ Proto : HTTP/2.0
160
+ Time : 475.611189ms
161
+ Received At: 2020-05-19 00:11:06.828188 -0700 PDT m=+0.476510773
159
162
Body :
160
163
{
161
164
"args": {},
162
165
"headers": {
163
166
"Accept-Encoding": "gzip",
164
167
"Host": "httpbin.org",
165
- "User-Agent": "go-resty/2.0 .0 (https://github.com/go-resty/resty)"
168
+ "User-Agent": "go-resty/2.3 .0 (https://github.com/go-resty/resty)"
166
169
},
167
170
"origin": "0.0.0.0",
168
171
"url": "https://httpbin.org/get"
169
172
}
170
173
171
174
Request Trace Info:
172
- DNSLookup : 2.21124ms
173
- ConnTime : 393.875795ms
174
- TLSHandshake : 319.313546ms
175
- ServerTime : 71.109256ms
176
- ResponseTime : 94.466µs
177
- TotalTime : 465.301137ms
175
+ DNSLookup : 4.870246ms
176
+ ConnTime : 393.95373ms
177
+ TCPConnTime : 78.360432ms
178
+ TLSHandshake : 310.032859ms
179
+ ServerTime : 81.648284ms
180
+ ResponseTime : 124.266µs
181
+ TotalTime : 475.611189ms
178
182
IsConnReused : false
179
183
IsConnWasIdle: false
180
184
ConnIdleTime : 0s
@@ -833,6 +837,10 @@ BTW, I'd like to know what you think about `Resty`. Kindly open an issue or send
833
837
834
838
[ Jeevanandam M.] ( https://github.com/jeevatkm ) (jeeva@myjeeva.com )
835
839
840
+ ## Core Team
841
+
842
+ Have a look on [ Members] ( https://github.com/orgs/go-resty/teams/core/members ) page.
843
+
836
844
## Contributors
837
845
838
846
Have a look on [ Contributors] ( https://github.com/go-resty/resty/graphs/contributors ) page.
0 commit comments