Update module github.com/go-resty/resty/v2 to v2.7.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
github.com/go-resty/resty/v2 | require | minor |
v2.1.0 -> v2.7.0
|
Release Notes
go-resty/resty
v2.7.0
Release Notes
Enhancements
- Added method
SetHeaderMultiValues
for easier adding of multi-value http headers #432 MR #452 @mhdiiilham - Updated Bazel build to work with 4.0.0 MR #428 @tanyabouman
- Optimzed and improved the sync.Pool & Body Closure for json.NewEncoder buffers MR #421 @pborzenkov
- Added
RetryConditions
toresty.Request
#315, #324, #433, MR #436 @rohitkg98 - Update go mod for dependencies MR #459 @jeevatkm
- Added
SetBaseURL
and deprecatedSetHostURL
#441 MR #480 @jeevatkm - Made exported field on
client.PathParams
andrequest.PathParams
MR #476 @lavoiesl - Adding ability to customize the XML marshal/unmarshal functions #481, MR #484 @jeevatkm
Bug Fixes
- Fixed: Empty file upload on multipart form, handling EOF from file readers #431 MR #438 @NathanBaulch
- Fixed: SetScheme option side effects on schemeless Host URL #407 MR #460 @jeevatkm
Tests
- Add 1.16.x and remove 1.14.x from the Travis build MR #434 @kishaningithub
- Migrated from Travis CI to Github Actions #479 MR #480 @jeevatkm
- Thank you Travis CI for these many years of CI service to Resty project
Documentation
- Addressing broken members link in readme MR #435 @kishaningithub
- Version update 2.6.0 on readme for go.mod MR #453 @cnmade
v2.6.0
Release Notes
Features
Enhancements
- Added AddRetryAfterErrorCondition() option MR #384 @gtpaulose
- Refactor(retry.sleepDuration):
♻ extract jitterBackoff function MR #406 @ninedraft - Added a way set a Non-Canonical Header MR #413 @Lao-Tuo
- Test case update When SetRetryCount -1, both resp and error are nil MR #392 @yjhmelody
General
- Addressing checksum issue on v2.5.0 with this release
v2.5.0
Release Notes
Bug Fixes
- Reverting the breaking change (#355) introduced in the minor version #408 MR #414 @jeevatkm
v2.4.0
Release Notes
Features
- Added a new
OnError
hook that is called when a Resty request returns an error MR #398 @justenwalker
Enhancements
- Preserve marshal errors in middleware request body handler #361, MR #362 @moorereason
- Added go.sum to the project MR #375 @moorereason
- Added Request Attempt and Remote IP Address in TraceInfo #352, #370, MR #374 @jeevatkm
- Added
HeaderAuthorizationKey
in theClient
struct, it can be configured #387 MR #403 @jeevatkm - Added
SetPathParam
method inClient
sndRequest
for setting single path param #402 MR #403 @jeevatkm - Added option of
http.NoBody
when content length is settrue
and request body is nil #395 MR #403 @moorereason @jeevatkm
Bug Fixes
- Fixed - Trace timing issue when reused connections #346 MR #347 @moorereason
- Fixed - Request, execute user defined middlewares after resty's internal middlewares MR #355 @lggomez
- Fixed - Incorrect response time when saving the response file MR #357 @iwaltgen
- Fixed - Set supplied argument value to the field MR #368 @lewisay
- Fixed - Body size 0 when HTTP status code is 307, 308 #300 MR #380 @shiguangyin
- Fixed - Travis Build issue, many MRs are waiting MR #366 @jeevatkm
- Fixed - Retry sleep computation for 32bit arch MR #388 @creekorful
Documentation
- Added clarification on Request.RawRequest MR #354 @lggomez
- Godoc update - typo correction MR #363 @Alex1996a
- Corrected typo in AddRetryCondition function, readme example #365 MR #364 @ervitis
- Added ForceContentType example MR #371 @mattfenwick
- Added Resty package for Client and Response MR #378 @cxjava
- Godoc update on Readme for retry condition func MR #390 @lambdalisue
v2.3.0
Release Notes
New Features
- Add ability to set Authorization header Scheme #306, MR #307 @rigrassm
Enhancements
- Improving retry total value MR #322 @golemiso
- Added force content type option for automatic unmarshalling #240, #276, MR #323 @jeevatkm
- Make default retry not on middlewares errors MR #333 @lrita
- Add SetMultipartFormData func to Request MR #337 @ArcticSnowman
- Add types for middleware MR #341 @mloberg
Bug Fixes
- Addressing the issue of traceinfo totaltime #304, MR #321 @jeevatkm
- Changes to show the right amount of time in Trace inf MR #331 @JoaquinJimenezGarcia
- Fixed Debugf call in Request/Response logger MR #335 @phsym and @pierresy
- Addressing nil pointer error while accessing cookie jar on user provided http client #330, MR #340 @jeevatkm
- Addressing HTTP2 issue on go1.13 above #339, MR #340 @jeevatkm
- Fix TraceInfo on failed connections #338, MR #342 @moorereason
v2.2.0
Release Notes
Enhancements
- Added
Request.Send()
method to execute Request as-is MR #286 @dan-rising - Applied
debugBodySizeLimit
to Request debug logger MR #297 @viennadd - Added
SetRootCertificateFromString
method to read cert from string MR #313 @dzaytsev91
Bug Fixes
- Fixed - Trace context overrides request context if
EnableTrace
#285, MR #284 @xixinjie - Fixed - Failing first request and successfully retrying carries error from first #289, MR #290 @phillc
- Fixed - Panic When Calling TraceInfo But Tracing Has Not Been Enabled #293, MR #296 @JonnyPillar
Documentation
- Added awesome go badge MR #280 @kishaningithub
- Godoc and readme typo correction MR #310 @creekorful
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.