All Versions
116
Latest Version
Avg Release Cycle
14 days
Latest Release
-

Changelog History
Page 2

  • v3.13.2 Changes

    • ๐Ÿ‘ Allow using a MockResponse in the MockRequestBuilder
  • v3.13.1 Changes

    • โž• add some new features to MockClient
      • mockClient.reset() will clear any expectations
      • mockClient.defaultResponse() returns a default response expectation for when an explicit expectation was not matched
      • thenReturn(Supplier supplier) allows you to set the response body as a supplier to be invoked at request time.
  • v3.13.0 Changes

    • ๐Ÿ‘Œ Support InputStreams as bodies.
    • ๐Ÿ‘Œ Support ProgressMonitors for InputStream bodies
    • ๐Ÿคก Unirest-Mocks now includes a MockResponse and a MockConfig for use independent of the MockClient
  • v3.12.0 Changes

    • โฌ†๏ธ Bump GSON to 2.8.8
    • ๐Ÿ‘Œ Support honoring Retry-After headers on 429/529 for regular (not async) requests.
      • This feature will likely not make it to async until Unirest 4.
      • Can be enabled with Unirest.config().retryAfter(true);
      • Has a max re-try counter with a default of 10 which can be set with:
      • Unirest.config().retryAfter(true, maxNumberOfRetries);
      • ๐Ÿ”ฅ While Honoring The Retry-After header the thread will be blocked! ๐Ÿ”ฅ
      • It is highly recommend that this feature be used in conjunction with a circuit-breaking framework.
      • Let's say you have a web app that is making Unirest calls to downstream system X. You have many requests invoking this same service. If X starts to return 429's and Unirest is waiting on ALL of those requests. Unirest will quickly consume all your threads. At this time Unirest has no circuit-breaker of it's own to detect that this is happening. It will simply be happy to pause all of your threads forever.
  • v3.11.14 Changes

    • โฌ†๏ธ Bump GSON to 2.8.8
  • v3.11.13 Changes

    • โฌ†๏ธ Bump Jackson version in object-mapper-jackson to 2.12.4
    • โฌ†๏ธ Bump test and CI dependencies
  • v3.11.12 Changes

    • 0๏ธโƒฃ make the default basic cache concurrent.
  • v3.11.11 Changes

    • ๐Ÿ‘‰ useSystemProperties is not overwritten and should be reset back to true on reset
  • v3.11.10 Changes

    • ๐Ÿ”ง issue #394 use the configured Object Mapper rather than always Json
    • internal pre-factorings to get ready for Unirest 4
  • v3.11.09 Changes

    • ๐Ÿคก Expected body param values for Mock expects need to be url encoded
    • ๐Ÿ‘Œ Support ANY expectation on methods for MockClient. (e.g. `expect(HttpMethod.GET))