Skip to content

Commit 19d4968

Browse files
authoredMay 21, 2020
readme update, version bump, mod update (#344)
1 parent 986808a commit 19d4968

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed
 

Diff for: ‎README.md

+20-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p align="center"><a href="#features">Features</a> section describes in detail about Resty capabilities</p>
55
</p>
66
<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>
88
</p>
99
<p align="center">
1010
<h4 align="center">Resty Communication Channels</h4>
@@ -13,7 +13,7 @@
1313

1414
## News
1515

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.
1717
* v2.0.0 [released](https://github.com/go-resty/resty/releases/tag/v2.0.0) and tagged on Jul 16, 2019.
1818
* v1.12.0 [released](https://github.com/go-resty/resty/releases/tag/v1.12.0) and tagged on Feb 27, 2019.
1919
* 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.
104104

105105
```bash
106106
# Go Modules
107-
require github.com/go-resty/resty/v2 v2.2.0
107+
require github.com/go-resty/resty/v2 v2.3.0
108108
```
109109

110110
## Usage
@@ -131,6 +131,7 @@ fmt.Println("Response Info:")
131131
fmt.Println("Error :", err)
132132
fmt.Println("Status Code:", resp.StatusCode())
133133
fmt.Println("Status :", resp.Status())
134+
fmt.Println("Proto :", resp.Proto())
134135
fmt.Println("Time :", resp.Time())
135136
fmt.Println("Received At:", resp.ReceivedAt())
136137
fmt.Println("Body :\n", resp)
@@ -141,6 +142,7 @@ fmt.Println("Request Trace Info:")
141142
ti := resp.Request.TraceInfo()
142143
fmt.Println("DNSLookup :", ti.DNSLookup)
143144
fmt.Println("ConnTime :", ti.ConnTime)
145+
fmt.Println("TCPConnTime :", ti.TCPConnTime)
144146
fmt.Println("TLSHandshake :", ti.TLSHandshake)
145147
fmt.Println("ServerTime :", ti.ServerTime)
146148
fmt.Println("ResponseTime :", ti.ResponseTime)
@@ -154,27 +156,29 @@ Response Info:
154156
Error : <nil>
155157
Status Code: 200
156158
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
159162
Body :
160163
{
161164
"args": {},
162165
"headers": {
163166
"Accept-Encoding": "gzip",
164167
"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)"
166169
},
167170
"origin": "0.0.0.0",
168171
"url": "https://httpbin.org/get"
169172
}
170173
171174
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
178182
IsConnReused : false
179183
IsConnWasIdle: false
180184
ConnIdleTime : 0s
@@ -833,6 +837,10 @@ BTW, I'd like to know what you think about `Resty`. Kindly open an issue or send
833837

834838
[Jeevanandam M.](https://github.com/jeevatkm) (jeeva@myjeeva.com)
835839

840+
## Core Team
841+
842+
Have a look on [Members](https://github.com/orgs/go-resty/teams/core/members) page.
843+
836844
## Contributors
837845

838846
Have a look on [Contributors](https://github.com/go-resty/resty/graphs/contributors) page.

Diff for: ‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/go-resty/resty/v2
22

3-
require golang.org/x/net v0.0.0-20200222125558-5a598a2470a0
3+
require golang.org/x/net v0.0.0-20200513185701-a91f0712d120
44

55
go 1.11

Diff for: ‎resty.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
// Version # of resty
17-
const Version = "2.3.0-dev"
17+
const Version = "2.3.0"
1818

1919
// New method creates a new Resty client.
2020
func New() *Client {

0 commit comments

Comments
 (0)
Please sign in to comment.