|
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.0.0-blue.svg" alt="Release Version"></a> <a href="https://godoc.org/github.com/go-resty/resty"><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></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.1.0-blue.svg" alt="Release Version"></a> <a href="https://godoc.org/github.com/go-resty/resty"><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></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.1.0 [released](https://github.com/go-resty/resty/releases/tag/v2.1.0) and tagged on Oct 10, 2019. |
16 | 17 | * v2.0.0 [released](https://github.com/go-resty/resty/releases/tag/v2.0.0) and tagged on Jul 16, 2019. |
17 | 18 | * v1.12.0 [released](https://github.com/go-resty/resty/releases/tag/v1.12.0) and tagged on Feb 27, 2019. |
18 | 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). |
|
21 | 22 |
|
22 | 23 | * GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS, etc. |
23 | 24 | * Simple and chainable methods for settings and request |
24 | | - * Request Body can be `string`, `[]byte`, `struct`, `map`, `slice` and `io.Reader` too |
| 25 | + * [Request](https://godoc.org/github.com/go-resty/resty#Request) Body can be `string`, `[]byte`, `struct`, `map`, `slice` and `io.Reader` too |
25 | 26 | * Auto detects `Content-Type` |
26 | 27 | * Buffer less processing for `io.Reader` |
| 28 | + * Request Body can be read multiple times via `Request.RawRequest.GetBody()` |
27 | 29 | * [Response](https://godoc.org/github.com/go-resty/resty#Response) object gives you more possibility |
28 | 30 | * Access as `[]byte` array - `response.Body()` OR Access as `string` - `response.String()` |
29 | 31 | * Know your `response.Time()` and when we `response.ReceivedAt()` |
@@ -102,7 +104,7 @@ Resty author also published following projects for Go Community. |
102 | 104 |
|
103 | 105 | ```bash |
104 | 106 | # Go Modules |
105 | | -require github.com/go-resty/resty/v2 v2.0.0 |
| 107 | +require github.com/go-resty/resty/v2 v2.1.0 |
106 | 108 | ``` |
107 | 109 |
|
108 | 110 | ## Usage |
@@ -153,14 +155,14 @@ Error : <nil> |
153 | 155 | Status Code: 200 |
154 | 156 | Status : 200 OK |
155 | 157 | Time : 465.301137ms |
156 | | -Received At: 2019-03-10 01:52:33.772456 -0800 PST m=+0.466672260 |
| 158 | +Received At: 2019-06-16 01:52:33.772456 -0800 PST m=+0.466672260 |
157 | 159 | Body : |
158 | 160 | { |
159 | 161 | "args": {}, |
160 | 162 | "headers": { |
161 | 163 | "Accept-Encoding": "gzip", |
162 | 164 | "Host": "httpbin.org", |
163 | | - "User-Agent": "go-resty/2.0.0-rc.1 (https://github.com/go-resty/resty)" |
| 165 | + "User-Agent": "go-resty/2.0.0 (https://github.com/go-resty/resty)" |
164 | 166 | }, |
165 | 167 | "origin": "0.0.0.0", |
166 | 168 | "url": "https://httpbin.org/get" |
|
0 commit comments