You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h4align="center">Resty Communication Channels</h4>
@@ -13,7 +13,7 @@
13
13
14
14
## News
15
15
16
-
* v2.14.0 [released](https://github.com/go-resty/resty/releases/tag/v2.14.0) and tagged on Aug 04, 2024.
16
+
* v2.15.0 [released](https://github.com/go-resty/resty/releases/tag/v2.15.0) and tagged on Sep 14, 2024.
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).
@@ -62,10 +62,10 @@
62
62
* goroutine concurrent safe
63
63
* Resty Client trace, see [Client.EnableTrace](https://pkg.go.dev/github.com/go-resty/resty/v2#Client.EnableTrace) and [Request.EnableTrace](https://pkg.go.dev/github.com/go-resty/resty/v2#Request.EnableTrace)
64
64
* Since v2.4.0, trace info contains a `RequestAttempt` value, and the `Request` object contains an `Attempt` attribute
65
-
* Supports `GenerateCurlCommand`(**You should turn on `EnableTrace`**, otherwise the curl command will not contain the body)
65
+
* Supports on-demand CURL command generation, see [Client.EnableGenerateCurlOnDebug](https://pkg.go.dev/github.com/go-resty/resty/v2#Client.EnableGenerateCurlOnDebug), [Request.EnableGenerateCurlOnDebug](https://pkg.go.dev/github.com/go-resty/resty/v2#Request.EnableGenerateCurlOnDebug). It requires debug mode to be enabled.
66
66
* Debug mode - clean and informative logging presentation
67
67
* Gzip - Go does it automatically also resty has fallback handling too
68
-
* Works fine with `HTTP/2` and `HTTP/1.1`
68
+
* Works fine with `HTTP/2` and `HTTP/1.1`, also `HTTP/3` can be used with Resty, see this [comment](https://github.com/go-resty/resty/issues/846#issuecomment-2329696110)
69
69
*[Bazel support](#bazel-support)
70
70
* Easily mock Resty for testing, [for e.g.](#mocking-http-requests-using-httpmock-library)
71
71
* Well tested client library
@@ -87,7 +87,7 @@
87
87
88
88
#### Supported Go Versions
89
89
90
-
Recommended to use `go1.16` and above.
90
+
Recommended to use `go1.20` and above.
91
91
92
92
Initially Resty started supporting `go modules` since `v1.10.0` release.
93
93
@@ -102,16 +102,14 @@ Starting Resty v2 and higher versions, it fully embraces [go modules](https://gi
102
102
103
103
Resty author also published following projects for Go Community.
104
104
105
-
*[aah framework](https://aahframework.org) - A secure, flexible, rapid Go web framework.
106
-
*[THUMBAI](https://thumbai.app) - Go Mod Repository, Go Vanity Service and Simple Proxy Server.
107
105
*[go-model](https://github.com/jeevatkm/go-model) - Robust & Easy to use model mapper and utility methods for Go `struct`.
108
106
109
107
110
108
## Installation
111
109
112
110
```bash
113
111
# Go Modules
114
-
require github.com/go-resty/resty/v2 v2.11.0
112
+
require github.com/go-resty/resty/v2 v2.15.0
115
113
```
116
114
117
115
## Usage
@@ -123,21 +121,15 @@ The following samples will assist you to become as comfortable as possible with
0 commit comments