diff --git a/README.md b/README.md index 6bac139e..d92226c1 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,14 @@

Features section describes in detail about Resty capabilities

-

Build Status Code Coverage Go Report Card Release Version GoDoc License

+

Build Status Code Coverage Go Report Card Release Version GoDoc License

## News * [Collecting Inputs for Resty v2.0.0](https://github.com/go-resty/resty/issues/166) - * v1.10.1 [released](https://github.com/go-resty/resty/releases/latest) and tagged on Oct 27, 2018. + * v1.10.2 [released](https://github.com/go-resty/resty/releases/latest) and tagged on Nov 09, 2018. + * v1.10.0 [released](https://github.com/go-resty/resty/releases/tag/v1.10.0) and tagged on Oct 22, 2018. * v1.0 released - 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; `v1.0` was released on Sep 25, 2017. I'm very thankful to Resty users and its [contributors](https://github.com/go-resty/resty/graphs/contributors). ## Features @@ -87,7 +88,7 @@ Please refer section [Versioning](#versioning) for detailed info. ##### go.mod ```bash -require gopkg.in/resty.v1 v1.10.1 +require gopkg.in/resty.v1 v1.10.2 ``` ##### go get diff --git a/request.go b/request.go index 91ffdc7e..dfb0f577 100644 --- a/request.go +++ b/request.go @@ -159,10 +159,12 @@ func (r *Request) SetMultiValueFormData(params url.Values) *Request { return r } -// SetBody method sets the request body for the request. It supports various realtime need easy. -// We can say its quite handy or powerful. Supported request body data types is `string`, `[]byte`, -// `struct` and `map`. Body value can be pointer or non-pointer. Automatic marshalling -// for JSON and XML content type, if it is `struct` or `map`. +// SetBody method sets the request body for the request. It supports various realtime needs as easy. +// We can say its quite handy or powerful. Supported request body data types is `string`, +// `[]byte`, `struct`, `map`, `slice` and `io.Reader`. Body value can be pointer or non-pointer. +// Automatic marshalling for JSON and XML content type, if it is `struct`, `map`, or `slice`. +// +// Note: `io.Reader` is processed as bufferless mode while sending request. // // Example: // diff --git a/resty.go b/resty.go index b9a22ac6..94c49e7d 100644 --- a/resty.go +++ b/resty.go @@ -6,4 +6,4 @@ package resty // Version # of resty -const Version = "1.10.1" +const Version = "1.10.2"