Skip to content

1.8.0

Compare
Choose a tag to compare
@malcommac malcommac released this 27 Nov 16:56
· 20 commits to main since this release
51697c0

2022-11-27

NEW FEATURES

  • [#69] Added a new retry strategy (.afterTask(TimeInterval, RetryTask, RetryTaskErrorCatcher?)) to allow performing an async task before retrying the original request. With this new option is possible to perform work outside RealHTTP and inject whatever you need into the original request.
  • [#73] Added an explicit option for specifying boolean and array encoding strategies when adding parameters in bulk via formURLEncodedBody() function.
  • [#72] All methods and properties of HTTPAltRequestValidator are now marked as open to allow further customization of the validation behaviors.

FIXES

  • [#68] Removed warning for withTaskCancellationHandler() method in HTTPDataLoader in Swift 5.5. Also fixed the test_largeFileTestResume() unit test
  • [#70] Fixed the match(URL:) (with .ignoreQueryParameters) HTTPStubber function, which failed to match an URL when the port is explicitly set.

CONTRIBUTORS

  • Thanks to @frajaona for the new retry request strategy in #69
  • Thanks to @nashfive for suggestion about #73
  • Thanks to @aetherealtech for the report about the bug with stubber in #70
  • Thanks to @NicFontana for fixing large download's unit test and the squash of continuation function deprecation in #68