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

Changelog History
Page 10

  • v2.2.07 Changes

    • ๐Ÿ›  Fix init error
  • v2.2.06 Changes

    • โž• added ability to turn off redirect following with Options.followRedirects(boolean enable) (default is true)
  • v2.2.04 Changes

    • โž• 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());
  • v2.2.03 Changes

    • ๐Ÿ”ฆ Expose the Options.init() method to restore the system to a fresh start after a shutdown.
    • ๐Ÿ‘ป Unirest.shutdown() no longer throws a checked exception
  • v2.2.02 Changes

    • โž• 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 });

  • v2.2.01 Changes

    • โž• add cookiespec policies to config. These are the same as Apache Http Clients cookiespec. See org.apache.http.client.config.CookieSpec
  • v2.2.00 Changes

    • โ™ป๏ธ 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 Changes

    • 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.
  • v2.1.02 Changes

    • ๐Ÿ‘ #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 Changes

    • ๐Ÿ“œ JSON parsing errors no longer just throw out of asJson but are captured and can be inspected via HttpResponse::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.