All Versions
94
Latest Version
Avg Release Cycle
14 days
Latest Release
89 days ago
Changelog History
Page 9
Changelog History
Page 9
-
v2.2.06
- โ added ability to turn off redirect following with
Options.followRedirects(boolean enable)
(default is true)
- โ added ability to turn off redirect following with
-
v2.2.04
- โ Add
.charset(Charset charset)
to POSTS (both form and body) - ๐ Clean up some ambiguous methods in form posting. This may be a breaking change for a very small number of users. There are better methods for handling these cases.
- โ Added the ability to add HttpRequestInterceptors to the client. Though
Options.addInterceptor(new TestInterceptor());
- โ Add
-
v2.2.03
- ๐ฆ Expose the
Options.init()
method to restore the system to a fresh start after a shutdown. - ๐ป
Unirest.shutdown()
no longer throws a checked exception
- ๐ฆ Expose the
-
v2.2.02
- โ Add a mapper function to transform a HttpResponse to a HttpResponse
java HttpResponse<Integer> response = Unirest.get("http://someplace/number") .asString() .map(Integer::valueOf);
- โ Add a few ways to map a error response into a different type than the original ```java ErrorThing error = Unirest.get("http://someplace") .asObject(Thing.class) .mapError(ErrorThing.class); // will be null if the request had been successful
Unirest.get("http://someplace") .asObject(Thing.class) .ifFailure(ErrorThing.class, f -> { // f is a HttpResponse // this function is not called if the request was succesful });
- โ Add a mapper function to transform a HttpResponse to a HttpResponse
-
v2.2.01
- โ add cookiespec policies to config. These are the same as Apache Http Clients cookiespec. See org.apache.http.client.config.CookieSpec
-
v2.2.00
- โป๏ธ Major refactoring of how response objects are built. This internalizes HttpClientHelper which was previously public but not needed if you were using the library in in the expected way. This refactoring sets up the library for future work to extend the number of supported formats and for greater expression in the methods for those formats.
- โ Additional of functional map methods to HttpResponse so you don't have to stop the flow for further transformations.
- โก๏ธ Update the org.json dependency
- ๐ Fixed issue with achor hashes in URLs (#17)
- ๐ Fixed NPE in passing args as maps (#20)
-
v2.1.03
- Finally address #26 You can add a file upload progress monitor. This monitor will get called for each file in a multipart file upload by name.
java Unirest.post("http://someplace") .field("myFile", new File("/file/somthing.tar") .uploadMonitor((fieldName, fileName, bytesWritten, totalBytes) -> { // draw a upload progress bar or something }) .asEmpty()
- ๐ Fix an issue where when using generic methods that take object, passing in complex objects like InputStreams would not get send as the correct type.
- Finally address #26 You can add a file upload progress monitor. This monitor will get called for each file in a multipart file upload by name.
-
v2.1.02
- ๐ #120 support client certificates. You can pass in an entire keystore or just the path to it in the config.
- ๐ part of #260: only support a single basic auth header.
-
v2.1.01
- ๐ JSON parsing errors no longer just throw out of
asJson
but are captured and can be inspected viaHttpResponse::getParsingError
. This resolves the fact that most API's do not return valid JSON for non-200 status codes. - Return CompletableFuture rather that boring old Futures for all async methods.
- ๐ JSON parsing errors no longer just throw out of
-
v2.1.00
- #259 optionally flag the config to auto register the clients with shutdownhooks.
- #165 allow forcing a simple url-encoded param POST/PUT to be multipart. This adds a new method to the body interface so bumping the minor.