Resty Versions Save

Simple HTTP and REST client library for Go

v2.8.0

8 months ago

Release Notes

New Features

Enhancements

Bug Fixes

Documentation

Build

Deprecated Removal

New Contributors

Full Changelog: https://github.com/go-resty/resty/compare/v2.7.0...v2.8.0

v2.7.0

2 years ago

Release Notes

Enhancements

  • Added method SetHeaderMultiValues for easier adding of multi-value http headers #432 PR #452 @mhdiiilham
  • Updated Bazel build to work with 4.0.0 PR #428 @tanyabouman
  • Optimzed and improved the sync.Pool & Body Closure for json.NewEncoder buffers PR #421 @pborzenkov
  • Added RetryConditions to resty.Request #315, #324, #433, PR #436 @rohitkg98
  • Update go mod for dependencies PR #459 @jeevatkm
  • Added SetBaseURL and deprecated SetHostURL #441 PR #480 @jeevatkm
  • Made exported field on client.PathParams and request.PathParams PR #476 @lavoiesl
  • Adding ability to customize the XML marshal/unmarshal functions #481, PR #484 @jeevatkm

Bug Fixes

  • Fixed: Empty file upload on multipart form, handling EOF from file readers #431 PR #438 @NathanBaulch
  • Fixed: SetScheme option side effects on schemeless Host URL #407 PR #460 @jeevatkm

Tests

  • Add 1.16.x and remove 1.14.x from the Travis build PR #434 @kishaningithub
  • Migrated from Travis CI to Github Actions #479 PR #480 @jeevatkm
    • Thank you Travis CI for these many years of CI service to Resty project

Documentation

  • Addressing broken members link in readme PR #435 @kishaningithub
  • Version update 2.6.0 on readme for go.mod PR #453 @cnmade

v2.6.0

3 years ago

Release Notes

Features

  • Added Retry hooks #416 PR #417 @Blokje5

Enhancements

  • Added AddRetryAfterErrorCondition() option PR #384 @gtpaulose
  • Refactor(retry.sleepDuration): :recycle: extract jitterBackoff function PR #406 @ninedraft
  • Added a way set a Non-Canonical Header PR #413 @Lao-Tuo
  • Test case update When SetRetryCount -1, both resp and error are nil PR #392 @yjhmelody

General

  • Addressing checksum issue on v2.5.0 with this release

v2.5.0

3 years ago

Release Notes

Bug Fixes

  • Reverting the breaking change (#355) introduced in the minor version #408 PR #414 @jeevatkm

v2.4.0

3 years ago

Release Notes

Features

  • Added a new OnError hook that is called when a Resty request returns an error PR #398 @justenwalker

Enhancements

  • Preserve marshal errors in middleware request body handler #361, PR #362 @moorereason
  • Added go.sum to the project PR #375 @moorereason
  • Added Request Attempt and Remote IP Address in TraceInfo #352, #370, PR #374 @jeevatkm
  • Added HeaderAuthorizationKey in the Client struct, it can be configured #387 PR #403 @jeevatkm
  • Added SetPathParam method in Client snd Request for setting single path param #402 PR #403 @jeevatkm
  • Added option of http.NoBody when content length is set true and request body is nil #395 PR #403 @moorereason @jeevatkm

Bug Fixes

  • Fixed - Trace timing issue when reused connections #346 PR #347 @moorereason
  • Fixed - Request, execute user defined middlewares after resty's internal middlewares PR #355 @lggomez
  • Fixed - Incorrect response time when saving the response file PR #357 @iwaltgen
  • Fixed - Set supplied argument value to the field PR #368 @lewisay
  • Fixed - Body size 0 when HTTP status code is 307, 308 #300 PR #380 @shiguangyin
  • Fixed - Travis Build issue, many PRs are waiting PR #366 @jeevatkm
  • Fixed - Retry sleep computation for 32bit arch PR #388 @creekorful

Documentation

  • Added clarification on Request.RawRequest PR #354 @lggomez
  • Godoc update - typo correction PR #363 @Alex1996a
  • Corrected typo in AddRetryCondition function, readme example #365 PR #364 @ervitis
  • Added ForceContentType example PR #371 @mattfenwick
  • Added Resty package for Client and Response PR #378 @cxjava
  • Godoc update on Readme for retry condition func PR #390 @lambdalisue

v2.3.0

3 years ago

Release Notes

New Features

  • Add ability to set Authorization header Scheme #306, PR #307 @rigrassm

Enhancements

  • Improving retry total value PR #322 @golemiso
  • Added force content type option for automatic unmarshalling #240, #276, PR #323 @jeevatkm
  • Make default retry not on middlewares errors PR #333 @lrita
  • Add SetMultipartFormData func to Request PR #337 @ArcticSnowman
  • Add types for middleware PR #341 @mloberg

Bug Fixes

  • Addressing the issue of traceinfo totaltime #304, PR #321 @jeevatkm
  • Changes to show the right amount of time in Trace inf PR #331 @JoaquinJimenezGarcia
  • Fixed Debugf call in Request/Response logger PR #335 @phsym and @pierresy
  • Addressing nil pointer error while accessing cookie jar on user provided http client #330, PR #340 @jeevatkm
  • Addressing HTTP2 issue on go1.13 above #339, PR #340 @jeevatkm
  • Fix TraceInfo on failed connections #338, PR #342 @moorereason

v2.3.0-rc.2

4 years ago

Next release candidate 😄

v2.3.0-rc.1

4 years ago

First release candidate for v2.3.0.

v2.2.0

4 years ago

Release Notes

Enhancements

  • Added Request.Send() method to execute Request as-is PR #286 @dan-rising
  • Applied debugBodySizeLimit to Request debug logger PR #297 @viennadd
  • Added SetRootCertificateFromString method to read cert from string PR #313 @dzaytsev91

Bug Fixes

  • Fixed - Trace context overrides request context if EnableTrace #285, PR #284 @xixinjie
  • Fixed - Failing first request and successfully retrying carries error from first #289, PR #290 @phillc
  • Fixed - Panic When Calling TraceInfo But Tracing Has Not Been Enabled #293, PR #296 @JonnyPillar

Documentation

  • Added awesome go badge PR #280 @kishaningithub
  • Godoc and readme typo correction PR #310 @creekorful

v2.1.0

4 years ago

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 @jeevatkm
  • Added SetCookie and SetCookies method added into Request object #257 @jeevatkm
  • Updated default JSON request content-type value without charset per RFC e.g., application/json #258 @jeevatkm
  • Reducing memory allocation during debug log processing PR #277 @vivekv96
  • Code improvements @jeevatkm

Bug Fixes

  • Fixed missing cookie values in the debug log from Cookie Jar #260, PR #261 @matthewpoer
  • Fixed Debug emits incorrect body when body contains % #270, PR #270 @kmanley