All Versions
116
Latest Version
Avg Release Cycle
14 days
Latest Release
-
Changelog History
Page 2
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.
- ➕ add some new features to MockClient
-
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)
)