go-resty/resty
### [`v2.7.0`](https://togithub.com/go-resty/resty/releases/v2.7.0)
[Compare Source](https://togithub.com/go-resty/resty/compare/v2.6.0...v2.7.0)
### Release Notes
##### Enhancements
- Added method `SetHeaderMultiValues` for easier adding of multi-value http headers [#432](https://togithub.com/go-resty/resty/issues/432) PR [#452](https://togithub.com/go-resty/resty/issues/452) [@mhdiiilham](https://togithub.com/mhdiiilham)
- Updated Bazel build to work with 4.0.0 PR [#428](https://togithub.com/go-resty/resty/issues/428) [@tanyabouman](https://togithub.com/tanyabouman)
- Optimzed and improved the sync.Pool & Body Closure for json.NewEncoder buffers PR [#421](https://togithub.com/go-resty/resty/issues/421) [@pborzenkov](https://togithub.com/pborzenkov)
- Added `RetryConditions` to `resty.Request` [#315](https://togithub.com/go-resty/resty/issues/315), [#324](https://togithub.com/go-resty/resty/issues/324), [#433](https://togithub.com/go-resty/resty/issues/433), PR [#436](https://togithub.com/go-resty/resty/issues/436) [@rohitkg98](https://togithub.com/rohitkg98)
- Update go mod for dependencies PR [#459](https://togithub.com/go-resty/resty/issues/459) [@jeevatkm](https://togithub.com/jeevatkm)
- Added `SetBaseURL` and deprecated `SetHostURL` [#441](https://togithub.com/go-resty/resty/issues/441) PR [#480](https://togithub.com/go-resty/resty/issues/480) [@jeevatkm](https://togithub.com/jeevatkm)
- Made exported field on `client.PathParams` and `request.PathParams` PR [#476](https://togithub.com/go-resty/resty/issues/476) [@lavoiesl](https://togithub.com/lavoiesl)
- Adding ability to customize the XML marshal/unmarshal functions [#481](https://togithub.com/go-resty/resty/issues/481), PR [#484](https://togithub.com/go-resty/resty/issues/484) [@jeevatkm](https://togithub.com/jeevatkm)
##### Bug Fixes
- Fixed: Empty file upload on multipart form, handling EOF from file readers [#431](https://togithub.com/go-resty/resty/issues/431) PR [#438](https://togithub.com/go-resty/resty/issues/438) [@NathanBaulch](https://togithub.com/NathanBaulch)
- Fixed: SetScheme option side effects on schemeless Host URL [#407](https://togithub.com/go-resty/resty/issues/407) PR [#460](https://togithub.com/go-resty/resty/issues/460) [@jeevatkm](https://togithub.com/jeevatkm)
##### Tests
- Add 1.16.x and remove 1.14.x from the Travis build PR [#434](https://togithub.com/go-resty/resty/issues/434) [@kishaningithub](https://togithub.com/kishaningithub)
- Migrated from Travis CI to Github Actions [#479](https://togithub.com/go-resty/resty/issues/479) PR [#480](https://togithub.com/go-resty/resty/issues/480) [@jeevatkm](https://togithub.com/jeevatkm)
- Thank you Travis CI for these many years of CI service to Resty project
##### Documentation
- Addressing broken members link in readme PR [#435](https://togithub.com/go-resty/resty/issues/435) [@kishaningithub](https://togithub.com/kishaningithub)
- Version update 2.6.0 on readme for go.mod PR [#453](https://togithub.com/go-resty/resty/issues/453) [@cnmade](https://togithub.com/cnmade)
### [`v2.6.0`](https://togithub.com/go-resty/resty/releases/v2.6.0)
[Compare Source](https://togithub.com/go-resty/resty/compare/v2.5.0...v2.6.0)
### Release Notes
##### Features
- Added Retry hooks [#416](https://togithub.com/go-resty/resty/issues/416) PR [#417](https://togithub.com/go-resty/resty/issues/417) [@Blokje5](https://togithub.com/Blokje5)
##### Enhancements
- Added AddRetryAfterErrorCondition() option PR [#384](https://togithub.com/go-resty/resty/issues/384) [@gtpaulose](https://togithub.com/gtpaulose)
- Refactor(retry.sleepDuration): :recycle: extract jitterBackoff function PR [#406](https://togithub.com/go-resty/resty/issues/406) [@ninedraft](https://togithub.com/ninedraft)
- Added a way set a Non-Canonical Header PR [#413](https://togithub.com/go-resty/resty/issues/413) [@Lao-Tuo](https://togithub.com/Lao-Tuo)
- Test case update When SetRetryCount -1, both resp and error are nil PR [#392](https://togithub.com/go-resty/resty/issues/392) [@yjhmelody](https://togithub.com/yjhmelody)
##### General
- Addressing checksum issue on v2.5.0 with this release
### [`v2.5.0`](https://togithub.com/go-resty/resty/releases/v2.5.0)
[Compare Source](https://togithub.com/go-resty/resty/compare/v2.4.0...v2.5.0)
### Release Notes
##### Bug Fixes
- Reverting the breaking change ([#355](https://togithub.com/go-resty/resty/issues/355)) introduced in the minor version [#408](https://togithub.com/go-resty/resty/issues/408) PR [#414](https://togithub.com/go-resty/resty/issues/414) [@jeevatkm](https://togithub.com/jeevatkm)
### [`v2.4.0`](https://togithub.com/go-resty/resty/releases/v2.4.0)
[Compare Source](https://togithub.com/go-resty/resty/compare/v2.3.0...v2.4.0)
### Release Notes
##### Features
- Added a new `OnError` hook that is called when a Resty request returns an error PR [#398](https://togithub.com/go-resty/resty/issues/398) [@justenwalker](https://togithub.com/justenwalker)
##### Enhancements
- Preserve marshal errors in middleware request body handler [#361](https://togithub.com/go-resty/resty/issues/361), PR [#362](https://togithub.com/go-resty/resty/issues/362) [@moorereason](https://togithub.com/moorereason)
- Added go.sum to the project PR [#375](https://togithub.com/go-resty/resty/issues/375) [@moorereason](https://togithub.com/moorereason)
- Added Request Attempt and Remote IP Address in TraceInfo [#352](https://togithub.com/go-resty/resty/issues/352), [#370](https://togithub.com/go-resty/resty/issues/370), PR [#374](https://togithub.com/go-resty/resty/issues/374) [@jeevatkm](https://togithub.com/jeevatkm)
- Added `HeaderAuthorizationKey` in the `Client` struct, it can be configured [#387](https://togithub.com/go-resty/resty/issues/387) PR [#403](https://togithub.com/go-resty/resty/issues/403) [@jeevatkm](https://togithub.com/jeevatkm)
- Added `SetPathParam` method in `Client` snd `Request` for setting single path param [#402](https://togithub.com/go-resty/resty/issues/402) PR [#403](https://togithub.com/go-resty/resty/issues/403) [@jeevatkm](https://togithub.com/jeevatkm)
- Added option of `http.NoBody` when content length is set `true` and request body is nil [#395](https://togithub.com/go-resty/resty/issues/395) PR [#403](https://togithub.com/go-resty/resty/issues/403) [@moorereason](https://togithub.com/moorereason) [@jeevatkm](https://togithub.com/jeevatkm)
##### Bug Fixes
- Fixed - Trace timing issue when reused connections [#346](https://togithub.com/go-resty/resty/issues/346) PR [#347](https://togithub.com/go-resty/resty/issues/347) [@moorereason](https://togithub.com/moorereason)
- Fixed - Request, execute user defined middlewares after resty's internal middlewares PR [#355](https://togithub.com/go-resty/resty/issues/355) [@lggomez](https://togithub.com/lggomez)
- Fixed - Incorrect response time when saving the response file PR [#357](https://togithub.com/go-resty/resty/issues/357) [@iwaltgen](https://togithub.com/iwaltgen)
- Fixed - Set supplied argument value to the field PR [#368](https://togithub.com/go-resty/resty/issues/368) [@lewisay](https://togithub.com/lewisay)
- Fixed - Body size 0 when HTTP status code is 307, 308 [#300](https://togithub.com/go-resty/resty/issues/300) PR [#380](https://togithub.com/go-resty/resty/issues/380) [@shiguangyin](https://togithub.com/shiguangyin)
- Fixed - Travis Build issue, many PRs are waiting PR [#366](https://togithub.com/go-resty/resty/issues/366) [@jeevatkm](https://togithub.com/jeevatkm)
- Fixed - Retry sleep computation for 32bit arch PR [#388](https://togithub.com/go-resty/resty/issues/388) [@creekorful](https://togithub.com/creekorful)
##### Documentation
- Added clarification on Request.RawRequest PR [#354](https://togithub.com/go-resty/resty/issues/354) [@lggomez](https://togithub.com/lggomez)
- Godoc update - typo correction PR [#363](https://togithub.com/go-resty/resty/issues/363) [@Alex1996a](https://togithub.com/Alex1996a)
- Corrected typo in AddRetryCondition function, readme example [#365](https://togithub.com/go-resty/resty/issues/365) PR [#364](https://togithub.com/go-resty/resty/issues/364) [@ervitis](https://togithub.com/ervitis)
- Added ForceContentType example PR [#371](https://togithub.com/go-resty/resty/issues/371) [@mattfenwick](https://togithub.com/mattfenwick)
- Added Resty package for Client and Response PR [#378](https://togithub.com/go-resty/resty/issues/378) [@cxjava](https://togithub.com/cxjava)
- Godoc update on Readme for retry condition func PR [#390](https://togithub.com/go-resty/resty/issues/390) [@lambdalisue](https://togithub.com/lambdalisue)
### [`v2.3.0`](https://togithub.com/go-resty/resty/releases/v2.3.0)
[Compare Source](https://togithub.com/go-resty/resty/compare/v2.2.0...v2.3.0)
### Release Notes
#### New Features
- Add ability to set Authorization header Scheme [#306](https://togithub.com/go-resty/resty/issues/306), PR [#307](https://togithub.com/go-resty/resty/issues/307) [@rigrassm](https://togithub.com/rigrassm)
#### Enhancements
- Improving retry total value PR [#322](https://togithub.com/go-resty/resty/issues/322) [@golemiso](https://togithub.com/golemiso)
- Added force content type option for automatic unmarshalling [#240](https://togithub.com/go-resty/resty/issues/240), [#276](https://togithub.com/go-resty/resty/issues/276), PR [#323](https://togithub.com/go-resty/resty/issues/323) [@jeevatkm](https://togithub.com/jeevatkm)
- Make default retry not on middlewares errors PR [#333](https://togithub.com/go-resty/resty/issues/333) [@lrita](https://togithub.com/lrita)
- Add SetMultipartFormData func to Request PR [#337](https://togithub.com/go-resty/resty/issues/337) [@ArcticSnowman](https://togithub.com/ArcticSnowman)
- Add types for middleware PR [#341](https://togithub.com/go-resty/resty/issues/341) [@mloberg](https://togithub.com/mloberg)
#### Bug Fixes
- Addressing the issue of traceinfo totaltime [#304](https://togithub.com/go-resty/resty/issues/304), PR [#321](https://togithub.com/go-resty/resty/issues/321) [@jeevatkm](https://togithub.com/jeevatkm)
- Changes to show the right amount of time in Trace inf PR [#331](https://togithub.com/go-resty/resty/issues/331) [@JoaquinJimenezGarcia](https://togithub.com/JoaquinJimenezGarcia)
- Fixed Debugf call in Request/Response logger PR [#335](https://togithub.com/go-resty/resty/issues/335) [@phsym](https://togithub.com/phsym) and [@pierresy](https://togithub.com/pierresy)
- Addressing nil pointer error while accessing cookie jar on user provided http client [#330](https://togithub.com/go-resty/resty/issues/330), PR [#340](https://togithub.com/go-resty/resty/issues/340) [@jeevatkm](https://togithub.com/jeevatkm)
- Addressing HTTP2 issue on go1.13 above [#339](https://togithub.com/go-resty/resty/issues/339), PR [#340](https://togithub.com/go-resty/resty/issues/340) [@jeevatkm](https://togithub.com/jeevatkm)
- Fix TraceInfo on failed connections [#338](https://togithub.com/go-resty/resty/issues/338), PR [#342](https://togithub.com/go-resty/resty/issues/342) [@moorereason](https://togithub.com/moorereason)
### [`v2.2.0`](https://togithub.com/go-resty/resty/releases/v2.2.0)
[Compare Source](https://togithub.com/go-resty/resty/compare/v2.1.0...v2.2.0)
### Release Notes
#### Enhancements
- Added `Request.Send()` method to execute Request as-is PR [#286](https://togithub.com/go-resty/resty/issues/286) [@dan-rising](https://togithub.com/dan-rising)
- Applied `debugBodySizeLimit` to Request debug logger PR [#297](https://togithub.com/go-resty/resty/issues/297) [@viennadd](https://togithub.com/viennadd)
- Added `SetRootCertificateFromString` method to read cert from string PR [#313](https://togithub.com/go-resty/resty/issues/313) [@dzaytsev91](https://togithub.com/dzaytsev91)
#### Bug Fixes
- Fixed - Trace context overrides request context if `EnableTrace` [#285](https://togithub.com/go-resty/resty/issues/285), PR [#284](https://togithub.com/go-resty/resty/issues/284) [@xixinjie](https://togithub.com/xixinjie)
- Fixed - Failing first request and successfully retrying carries error from first [#289](https://togithub.com/go-resty/resty/issues/289), PR [#290](https://togithub.com/go-resty/resty/issues/290) [@phillc](https://togithub.com/phillc)
- Fixed - Panic When Calling TraceInfo But Tracing Has Not Been Enabled [#293](https://togithub.com/go-resty/resty/issues/293), PR [#296](https://togithub.com/go-resty/resty/issues/296) [@JonnyPillar](https://togithub.com/JonnyPillar)
#### Documentation
- Added awesome go badge PR [#280](https://togithub.com/go-resty/resty/issues/280) [@kishaningithub](https://togithub.com/kishaningithub)
- Godoc and readme typo correction PR [#310](https://togithub.com/go-resty/resty/issues/310) [@creekorful](https://togithub.com/creekorful)
### [`v2.1.0`](https://togithub.com/go-resty/resty/releases/v2.1.0)
[Compare Source](https://togithub.com/go-resty/resty/compare/v2.0.0...v2.1.0)
### Release Notes
#### Enhancements
- Added support for func `http.Request.GetBody`, so request body manipalation can be done via `PreRequestHook` (such as adding Content-MD5 entity-header, etc) [#242](https://togithub.com/go-resty/resty/issues/242) [@jeevatkm](https://togithub.com/jeevatkm)
- Added `SetCookie` and `SetCookies` method added into `Request` object [#257](https://togithub.com/go-resty/resty/issues/257) [@jeevatkm](https://togithub.com/jeevatkm)
- Updated default JSON request content-type value without charset per RFC e.g., `application/json` [#258](https://togithub.com/go-resty/resty/issues/258) [@jeevatkm](https://togithub.com/jeevatkm)
- Reducing memory allocation during debug log processing PR [#277](https://togithub.com/go-resty/resty/issues/277) [@vivekv96](https://togithub.com/vivekv96)
- Code improvements [@jeevatkm](https://togithub.com/jeevatkm)
#### Bug Fixes
- Fixed missing cookie values in the debug log from Cookie Jar [#260](https://togithub.com/go-resty/resty/issues/260), PR [#261](https://togithub.com/go-resty/resty/issues/261) [@matthewpoer](https://togithub.com/matthewpoer)
- Fixed Debug emits incorrect body when body contains `%` [#270](https://togithub.com/go-resty/resty/issues/270), PR [#270](https://togithub.com/go-resty/resty/issues/270) [@kmanley](https://togithub.com/kmanley)
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
v2.0.0
->v2.7.0
Release Notes
go-resty/resty
### [`v2.7.0`](https://togithub.com/go-resty/resty/releases/v2.7.0) [Compare Source](https://togithub.com/go-resty/resty/compare/v2.6.0...v2.7.0) ### Release Notes ##### Enhancements - Added method `SetHeaderMultiValues` for easier adding of multi-value http headers [#432](https://togithub.com/go-resty/resty/issues/432) PR [#452](https://togithub.com/go-resty/resty/issues/452) [@mhdiiilham](https://togithub.com/mhdiiilham) - Updated Bazel build to work with 4.0.0 PR [#428](https://togithub.com/go-resty/resty/issues/428) [@tanyabouman](https://togithub.com/tanyabouman) - Optimzed and improved the sync.Pool & Body Closure for json.NewEncoder buffers PR [#421](https://togithub.com/go-resty/resty/issues/421) [@pborzenkov](https://togithub.com/pborzenkov) - Added `RetryConditions` to `resty.Request` [#315](https://togithub.com/go-resty/resty/issues/315), [#324](https://togithub.com/go-resty/resty/issues/324), [#433](https://togithub.com/go-resty/resty/issues/433), PR [#436](https://togithub.com/go-resty/resty/issues/436) [@rohitkg98](https://togithub.com/rohitkg98) - Update go mod for dependencies PR [#459](https://togithub.com/go-resty/resty/issues/459) [@jeevatkm](https://togithub.com/jeevatkm) - Added `SetBaseURL` and deprecated `SetHostURL` [#441](https://togithub.com/go-resty/resty/issues/441) PR [#480](https://togithub.com/go-resty/resty/issues/480) [@jeevatkm](https://togithub.com/jeevatkm) - Made exported field on `client.PathParams` and `request.PathParams` PR [#476](https://togithub.com/go-resty/resty/issues/476) [@lavoiesl](https://togithub.com/lavoiesl) - Adding ability to customize the XML marshal/unmarshal functions [#481](https://togithub.com/go-resty/resty/issues/481), PR [#484](https://togithub.com/go-resty/resty/issues/484) [@jeevatkm](https://togithub.com/jeevatkm) ##### Bug Fixes - Fixed: Empty file upload on multipart form, handling EOF from file readers [#431](https://togithub.com/go-resty/resty/issues/431) PR [#438](https://togithub.com/go-resty/resty/issues/438) [@NathanBaulch](https://togithub.com/NathanBaulch) - Fixed: SetScheme option side effects on schemeless Host URL [#407](https://togithub.com/go-resty/resty/issues/407) PR [#460](https://togithub.com/go-resty/resty/issues/460) [@jeevatkm](https://togithub.com/jeevatkm) ##### Tests - Add 1.16.x and remove 1.14.x from the Travis build PR [#434](https://togithub.com/go-resty/resty/issues/434) [@kishaningithub](https://togithub.com/kishaningithub) - Migrated from Travis CI to Github Actions [#479](https://togithub.com/go-resty/resty/issues/479) PR [#480](https://togithub.com/go-resty/resty/issues/480) [@jeevatkm](https://togithub.com/jeevatkm) - Thank you Travis CI for these many years of CI service to Resty project ##### Documentation - Addressing broken members link in readme PR [#435](https://togithub.com/go-resty/resty/issues/435) [@kishaningithub](https://togithub.com/kishaningithub) - Version update 2.6.0 on readme for go.mod PR [#453](https://togithub.com/go-resty/resty/issues/453) [@cnmade](https://togithub.com/cnmade) ### [`v2.6.0`](https://togithub.com/go-resty/resty/releases/v2.6.0) [Compare Source](https://togithub.com/go-resty/resty/compare/v2.5.0...v2.6.0) ### Release Notes ##### Features - Added Retry hooks [#416](https://togithub.com/go-resty/resty/issues/416) PR [#417](https://togithub.com/go-resty/resty/issues/417) [@Blokje5](https://togithub.com/Blokje5) ##### Enhancements - Added AddRetryAfterErrorCondition() option PR [#384](https://togithub.com/go-resty/resty/issues/384) [@gtpaulose](https://togithub.com/gtpaulose) - Refactor(retry.sleepDuration): :recycle: extract jitterBackoff function PR [#406](https://togithub.com/go-resty/resty/issues/406) [@ninedraft](https://togithub.com/ninedraft) - Added a way set a Non-Canonical Header PR [#413](https://togithub.com/go-resty/resty/issues/413) [@Lao-Tuo](https://togithub.com/Lao-Tuo) - Test case update When SetRetryCount -1, both resp and error are nil PR [#392](https://togithub.com/go-resty/resty/issues/392) [@yjhmelody](https://togithub.com/yjhmelody) ##### General - Addressing checksum issue on v2.5.0 with this release ### [`v2.5.0`](https://togithub.com/go-resty/resty/releases/v2.5.0) [Compare Source](https://togithub.com/go-resty/resty/compare/v2.4.0...v2.5.0) ### Release Notes ##### Bug Fixes - Reverting the breaking change ([#355](https://togithub.com/go-resty/resty/issues/355)) introduced in the minor version [#408](https://togithub.com/go-resty/resty/issues/408) PR [#414](https://togithub.com/go-resty/resty/issues/414) [@jeevatkm](https://togithub.com/jeevatkm) ### [`v2.4.0`](https://togithub.com/go-resty/resty/releases/v2.4.0) [Compare Source](https://togithub.com/go-resty/resty/compare/v2.3.0...v2.4.0) ### Release Notes ##### Features - Added a new `OnError` hook that is called when a Resty request returns an error PR [#398](https://togithub.com/go-resty/resty/issues/398) [@justenwalker](https://togithub.com/justenwalker) ##### Enhancements - Preserve marshal errors in middleware request body handler [#361](https://togithub.com/go-resty/resty/issues/361), PR [#362](https://togithub.com/go-resty/resty/issues/362) [@moorereason](https://togithub.com/moorereason) - Added go.sum to the project PR [#375](https://togithub.com/go-resty/resty/issues/375) [@moorereason](https://togithub.com/moorereason) - Added Request Attempt and Remote IP Address in TraceInfo [#352](https://togithub.com/go-resty/resty/issues/352), [#370](https://togithub.com/go-resty/resty/issues/370), PR [#374](https://togithub.com/go-resty/resty/issues/374) [@jeevatkm](https://togithub.com/jeevatkm) - Added `HeaderAuthorizationKey` in the `Client` struct, it can be configured [#387](https://togithub.com/go-resty/resty/issues/387) PR [#403](https://togithub.com/go-resty/resty/issues/403) [@jeevatkm](https://togithub.com/jeevatkm) - Added `SetPathParam` method in `Client` snd `Request` for setting single path param [#402](https://togithub.com/go-resty/resty/issues/402) PR [#403](https://togithub.com/go-resty/resty/issues/403) [@jeevatkm](https://togithub.com/jeevatkm) - Added option of `http.NoBody` when content length is set `true` and request body is nil [#395](https://togithub.com/go-resty/resty/issues/395) PR [#403](https://togithub.com/go-resty/resty/issues/403) [@moorereason](https://togithub.com/moorereason) [@jeevatkm](https://togithub.com/jeevatkm) ##### Bug Fixes - Fixed - Trace timing issue when reused connections [#346](https://togithub.com/go-resty/resty/issues/346) PR [#347](https://togithub.com/go-resty/resty/issues/347) [@moorereason](https://togithub.com/moorereason) - Fixed - Request, execute user defined middlewares after resty's internal middlewares PR [#355](https://togithub.com/go-resty/resty/issues/355) [@lggomez](https://togithub.com/lggomez) - Fixed - Incorrect response time when saving the response file PR [#357](https://togithub.com/go-resty/resty/issues/357) [@iwaltgen](https://togithub.com/iwaltgen) - Fixed - Set supplied argument value to the field PR [#368](https://togithub.com/go-resty/resty/issues/368) [@lewisay](https://togithub.com/lewisay) - Fixed - Body size 0 when HTTP status code is 307, 308 [#300](https://togithub.com/go-resty/resty/issues/300) PR [#380](https://togithub.com/go-resty/resty/issues/380) [@shiguangyin](https://togithub.com/shiguangyin) - Fixed - Travis Build issue, many PRs are waiting PR [#366](https://togithub.com/go-resty/resty/issues/366) [@jeevatkm](https://togithub.com/jeevatkm) - Fixed - Retry sleep computation for 32bit arch PR [#388](https://togithub.com/go-resty/resty/issues/388) [@creekorful](https://togithub.com/creekorful) ##### Documentation - Added clarification on Request.RawRequest PR [#354](https://togithub.com/go-resty/resty/issues/354) [@lggomez](https://togithub.com/lggomez) - Godoc update - typo correction PR [#363](https://togithub.com/go-resty/resty/issues/363) [@Alex1996a](https://togithub.com/Alex1996a) - Corrected typo in AddRetryCondition function, readme example [#365](https://togithub.com/go-resty/resty/issues/365) PR [#364](https://togithub.com/go-resty/resty/issues/364) [@ervitis](https://togithub.com/ervitis) - Added ForceContentType example PR [#371](https://togithub.com/go-resty/resty/issues/371) [@mattfenwick](https://togithub.com/mattfenwick) - Added Resty package for Client and Response PR [#378](https://togithub.com/go-resty/resty/issues/378) [@cxjava](https://togithub.com/cxjava) - Godoc update on Readme for retry condition func PR [#390](https://togithub.com/go-resty/resty/issues/390) [@lambdalisue](https://togithub.com/lambdalisue) ### [`v2.3.0`](https://togithub.com/go-resty/resty/releases/v2.3.0) [Compare Source](https://togithub.com/go-resty/resty/compare/v2.2.0...v2.3.0) ### Release Notes #### New Features - Add ability to set Authorization header Scheme [#306](https://togithub.com/go-resty/resty/issues/306), PR [#307](https://togithub.com/go-resty/resty/issues/307) [@rigrassm](https://togithub.com/rigrassm) #### Enhancements - Improving retry total value PR [#322](https://togithub.com/go-resty/resty/issues/322) [@golemiso](https://togithub.com/golemiso) - Added force content type option for automatic unmarshalling [#240](https://togithub.com/go-resty/resty/issues/240), [#276](https://togithub.com/go-resty/resty/issues/276), PR [#323](https://togithub.com/go-resty/resty/issues/323) [@jeevatkm](https://togithub.com/jeevatkm) - Make default retry not on middlewares errors PR [#333](https://togithub.com/go-resty/resty/issues/333) [@lrita](https://togithub.com/lrita) - Add SetMultipartFormData func to Request PR [#337](https://togithub.com/go-resty/resty/issues/337) [@ArcticSnowman](https://togithub.com/ArcticSnowman) - Add types for middleware PR [#341](https://togithub.com/go-resty/resty/issues/341) [@mloberg](https://togithub.com/mloberg) #### Bug Fixes - Addressing the issue of traceinfo totaltime [#304](https://togithub.com/go-resty/resty/issues/304), PR [#321](https://togithub.com/go-resty/resty/issues/321) [@jeevatkm](https://togithub.com/jeevatkm) - Changes to show the right amount of time in Trace inf PR [#331](https://togithub.com/go-resty/resty/issues/331) [@JoaquinJimenezGarcia](https://togithub.com/JoaquinJimenezGarcia) - Fixed Debugf call in Request/Response logger PR [#335](https://togithub.com/go-resty/resty/issues/335) [@phsym](https://togithub.com/phsym) and [@pierresy](https://togithub.com/pierresy) - Addressing nil pointer error while accessing cookie jar on user provided http client [#330](https://togithub.com/go-resty/resty/issues/330), PR [#340](https://togithub.com/go-resty/resty/issues/340) [@jeevatkm](https://togithub.com/jeevatkm) - Addressing HTTP2 issue on go1.13 above [#339](https://togithub.com/go-resty/resty/issues/339), PR [#340](https://togithub.com/go-resty/resty/issues/340) [@jeevatkm](https://togithub.com/jeevatkm) - Fix TraceInfo on failed connections [#338](https://togithub.com/go-resty/resty/issues/338), PR [#342](https://togithub.com/go-resty/resty/issues/342) [@moorereason](https://togithub.com/moorereason) ### [`v2.2.0`](https://togithub.com/go-resty/resty/releases/v2.2.0) [Compare Source](https://togithub.com/go-resty/resty/compare/v2.1.0...v2.2.0) ### Release Notes #### Enhancements - Added `Request.Send()` method to execute Request as-is PR [#286](https://togithub.com/go-resty/resty/issues/286) [@dan-rising](https://togithub.com/dan-rising) - Applied `debugBodySizeLimit` to Request debug logger PR [#297](https://togithub.com/go-resty/resty/issues/297) [@viennadd](https://togithub.com/viennadd) - Added `SetRootCertificateFromString` method to read cert from string PR [#313](https://togithub.com/go-resty/resty/issues/313) [@dzaytsev91](https://togithub.com/dzaytsev91) #### Bug Fixes - Fixed - Trace context overrides request context if `EnableTrace` [#285](https://togithub.com/go-resty/resty/issues/285), PR [#284](https://togithub.com/go-resty/resty/issues/284) [@xixinjie](https://togithub.com/xixinjie) - Fixed - Failing first request and successfully retrying carries error from first [#289](https://togithub.com/go-resty/resty/issues/289), PR [#290](https://togithub.com/go-resty/resty/issues/290) [@phillc](https://togithub.com/phillc) - Fixed - Panic When Calling TraceInfo But Tracing Has Not Been Enabled [#293](https://togithub.com/go-resty/resty/issues/293), PR [#296](https://togithub.com/go-resty/resty/issues/296) [@JonnyPillar](https://togithub.com/JonnyPillar) #### Documentation - Added awesome go badge PR [#280](https://togithub.com/go-resty/resty/issues/280) [@kishaningithub](https://togithub.com/kishaningithub) - Godoc and readme typo correction PR [#310](https://togithub.com/go-resty/resty/issues/310) [@creekorful](https://togithub.com/creekorful) ### [`v2.1.0`](https://togithub.com/go-resty/resty/releases/v2.1.0) [Compare Source](https://togithub.com/go-resty/resty/compare/v2.0.0...v2.1.0) ### Release Notes #### Enhancements - Added support for func `http.Request.GetBody`, so request body manipalation can be done via `PreRequestHook` (such as adding Content-MD5 entity-header, etc) [#242](https://togithub.com/go-resty/resty/issues/242) [@jeevatkm](https://togithub.com/jeevatkm) - Added `SetCookie` and `SetCookies` method added into `Request` object [#257](https://togithub.com/go-resty/resty/issues/257) [@jeevatkm](https://togithub.com/jeevatkm) - Updated default JSON request content-type value without charset per RFC e.g., `application/json` [#258](https://togithub.com/go-resty/resty/issues/258) [@jeevatkm](https://togithub.com/jeevatkm) - Reducing memory allocation during debug log processing PR [#277](https://togithub.com/go-resty/resty/issues/277) [@vivekv96](https://togithub.com/vivekv96) - Code improvements [@jeevatkm](https://togithub.com/jeevatkm) #### Bug Fixes - Fixed missing cookie values in the debug log from Cookie Jar [#260](https://togithub.com/go-resty/resty/issues/260), PR [#261](https://togithub.com/go-resty/resty/issues/261) [@matthewpoer](https://togithub.com/matthewpoer) - Fixed Debug emits incorrect body when body contains `%` [#270](https://togithub.com/go-resty/resty/issues/270), PR [#270](https://togithub.com/go-resty/resty/issues/270) [@kmanley](https://togithub.com/kmanley)Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.