diff --git a/README.md b/README.md index 5ddf2948..4d219915 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

Features section describes in detail about Resty capabilities

-

Build Status Code Coverage Go Report Card Release Version GoDoc License Mentioned in Awesome Go

+

Build Status Code Coverage Go Report Card Release Version GoDoc License Mentioned in Awesome Go

Resty Communication Channels

@@ -13,7 +13,7 @@ ## News - * v2.2.0 [released](https://github.com/go-resty/resty/releases/tag/v2.2.0) and tagged on Feb 23, 2020. + * v2.3.0 [released](https://github.com/go-resty/resty/releases/tag/v2.3.0) and tagged on May 20, 2020. * v2.0.0 [released](https://github.com/go-resty/resty/releases/tag/v2.0.0) and tagged on Jul 16, 2019. * v1.12.0 [released](https://github.com/go-resty/resty/releases/tag/v1.12.0) and tagged on Feb 27, 2019. * 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. ```bash # Go Modules -require github.com/go-resty/resty/v2 v2.2.0 +require github.com/go-resty/resty/v2 v2.3.0 ``` ## Usage @@ -131,6 +131,7 @@ fmt.Println("Response Info:") fmt.Println("Error :", err) fmt.Println("Status Code:", resp.StatusCode()) fmt.Println("Status :", resp.Status()) +fmt.Println("Proto :", resp.Proto()) fmt.Println("Time :", resp.Time()) fmt.Println("Received At:", resp.ReceivedAt()) fmt.Println("Body :\n", resp) @@ -141,6 +142,7 @@ fmt.Println("Request Trace Info:") ti := resp.Request.TraceInfo() fmt.Println("DNSLookup :", ti.DNSLookup) fmt.Println("ConnTime :", ti.ConnTime) +fmt.Println("TCPConnTime :", ti.TCPConnTime) fmt.Println("TLSHandshake :", ti.TLSHandshake) fmt.Println("ServerTime :", ti.ServerTime) fmt.Println("ResponseTime :", ti.ResponseTime) @@ -154,27 +156,29 @@ Response Info: Error : Status Code: 200 Status : 200 OK -Time : 465.301137ms -Received At: 2019-06-16 01:52:33.772456 -0800 PST m=+0.466672260 +Proto : HTTP/2.0 +Time : 475.611189ms +Received At: 2020-05-19 00:11:06.828188 -0700 PDT m=+0.476510773 Body : { "args": {}, "headers": { "Accept-Encoding": "gzip", "Host": "httpbin.org", - "User-Agent": "go-resty/2.0.0 (https://github.com/go-resty/resty)" + "User-Agent": "go-resty/2.3.0 (https://github.com/go-resty/resty)" }, "origin": "0.0.0.0", "url": "https://httpbin.org/get" } Request Trace Info: -DNSLookup : 2.21124ms -ConnTime : 393.875795ms -TLSHandshake : 319.313546ms -ServerTime : 71.109256ms -ResponseTime : 94.466µs -TotalTime : 465.301137ms +DNSLookup : 4.870246ms +ConnTime : 393.95373ms +TCPConnTime : 78.360432ms +TLSHandshake : 310.032859ms +ServerTime : 81.648284ms +ResponseTime : 124.266µs +TotalTime : 475.611189ms IsConnReused : false IsConnWasIdle: false ConnIdleTime : 0s @@ -833,6 +837,10 @@ BTW, I'd like to know what you think about `Resty`. Kindly open an issue or send [Jeevanandam M.](https://github.com/jeevatkm) (jeeva@myjeeva.com) +## Core Team + +Have a look on [Members](https://github.com/orgs/go-resty/teams/core/members) page. + ## Contributors Have a look on [Contributors](https://github.com/go-resty/resty/graphs/contributors) page. diff --git a/go.mod b/go.mod index 0ecb0cf5..f1faf5f1 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/go-resty/resty/v2 -require golang.org/x/net v0.0.0-20200222125558-5a598a2470a0 +require golang.org/x/net v0.0.0-20200513185701-a91f0712d120 go 1.11 diff --git a/resty.go b/resty.go index 68e7fafb..4685594b 100644 --- a/resty.go +++ b/resty.go @@ -14,7 +14,7 @@ import ( ) // Version # of resty -const Version = "2.3.0-dev" +const Version = "2.3.0" // New method creates a new Resty client. func New() *Client {