v2.4.0 Release
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 theClient
struct, it can be configured #387 PR #403 @jeevatkm - Added
SetPathParam
method inClient
sndRequest
for setting single path param #402 PR #403 @jeevatkm - Added option of
http.NoBody
when content length is settrue
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