Skip to content

Releases: go-resty/resty

v2.0.0 Release

17 Jul 05:12
d467d57
Compare
Choose a tag to compare

Release Notes

How to use Resty v2?

Please refer to README

New Features

Enhancements

  • Build User-Agent string only once PR #221 @moorereason
  • Retry Backoff algorthim and follow enhancement PR #237 @neganovalexey
  • Log request and response debug log together for easy debugging, its highly helpful for parallel #218 @jeevatkm
  • Default values set while http.Transport creation simliar to Langauge default client #212 @jeevatkm
    • Timeout, KeepAlive, MaxIdleConns, IdleConnTimeout, TLSHandshakeTimeout, ExpectContinueTimeout, MaxIdleConnsPerHost
  • Added support to multipart/form-data payload without filename and content type values PR #236 @larryhu
  • Added HTTP verb PATCH into multipart support #239 @jeevatkm

Breaking Changes - Migrating v1.x to v2

  • Resty v2 import path have changed to github.com/go-resty/resty #215 @jeevatkm
    • Resty v1 import path is not affected.
  • Resty Default Client approach have been removed. Create an instance of Resty client with appropriate settings for usage #232 @jeevatkm
  • PreRequestHook signature have been updated to func(cl *Client, r *http.Request) error #217 @jeevatkm
  • Retry condition function signature updated to RetryConditionFunc func(*Response, error) bool #237, #214 @neganovalexey, @jeevatkm
  • Resty v2 brings new Logger interface #229, refer to godoc @jeevatkm
  • Methods to accept type url.Values for Query string and Form data on Request struct #213 @jeevatkm
    • Refactored method from Request.SetMultiValueQueryParams to Request.SetQueryParamsFromValues
    • Refactored method from Request.SetMultiValueFormData to Request.SetFormDataFromValues

v2.0.0-rc.4

16 Jul 17:11
a4f3548
Compare
Choose a tag to compare
v2.0.0-rc.4 Pre-release
Pre-release
adding v2 go mod suffix and update dependency version

v2.0.0-rc.3

18 Jun 04:48
Compare
Choose a tag to compare
v2.0.0-rc.3 Pre-release
Pre-release

Third release candidate 😄

v2.0.0-rc.2

28 Mar 04:55
Compare
Choose a tag to compare
v2.0.0-rc.2 Pre-release
Pre-release

Second release candidate 😄

v2.0.0-rc.1

13 Mar 07:01
46fc51a
Compare
Choose a tag to compare
v2.0.0-rc.1 Pre-release
Pre-release

First Release Candidate

v1.12.0 Release

28 Feb 07:29
fa5875c
Compare
Choose a tag to compare

Changelog

Enhancement

  • Add batch SetMultipartFields in order to set multiple fields PR #211 @e11ni

v1.11.0 Release

06 Jan 18:18
03c09fa
Compare
Choose a tag to compare

Changelog

Enhancements

  • Add Content-Type application/json-rpc into Auto Unmarshaling support #203 @jeevatkm
  • Add Context() method into Request and consider logging prerequesthook updates in the debug log #206 @jeevatkm

v1.10.3 Release

05 Dec 06:39
a59932b
Compare
Choose a tag to compare

Changelog

Bug fix

  • panic: invalid argument to Intn on goarch 386 #202

v1.10.2 Release

09 Nov 17:52
13ff84e
Compare
Choose a tag to compare

Changelog

Bug fix

v1.10.1 Release

28 Oct 05:02
92a651c
Compare
Choose a tag to compare

Changelog

Bug fix

  • Added check for http status 204 No Content before parsing a response body #195 @jeevatkm