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

Changelog History
Page 6

  • v3.4.00 Changes

    January 13, 2020
    • ➕ Add methods to add cookies to the request and read cookie from the response
  • v3.3.05 Changes

    • ➕ Add a noop response type when you just don't care about the body. java HttpResponse re = Unirest.get("http://no.body.knows").asEmpty();
  • v3.3.04 Changes

    • ➕ Add the ability to follow a paged response by providing a lambda for the response type and one for getting the next page. It will stop once the next link is null or empty.
    • The PagedList has handy dandy methods to pass consumers to all success and failure responses. java PagedList<JsonNode> result = Unirest.get("http://and.pagey") .asPaged( r -> r.asJson(), r -> r.getHeaders().getFirst("nextPage") );
  • v3.3.03 Changes

    • Pulled isSuccess() up to the response interface so it can be used and enjoyed by everyone.
  • v3.3.02 Changes

    • ➕ Add the ability to make requests to non-standard web methods for things like WebDAV, SVN, or other horrible things. java Unirest.request("CHEESE", "http://some.cheesy.thing") .asString();
  • v3.3.00 Changes

    December 06, 2019
    • This is a major release with several breaking changes which (other than the namespace change) should ONLY impact you if you are using some of Unirests more advanced features or custom configurations.
    • The maven artifact has changed to open-unirest-java
    • The namespace has been shortened to just unirest (inspired by Java Spark)
    • ⬆️ The configuration system has been completely redone. Previously it was scattered across several classes and was entirely static. The new system has instances and supports multiple configurations. See the UPGRADE_GUIDE.md for details.
      • Start accessing the config with Unirest.config()
    • ✅ Almost everything is now fronted by interfaces, this makes testing easier.
    • Unirest itself can now be accessed as a interface with UnirestInstance
    • 🏗 ObjectMappers can be passed in as part of the builder.
    • 👍 option no longer supports body (per http spec)
    • 🏗 Accept and ContentType are now 1st class headers in the builder (Unirest.get(path).accept("application/json"))
    • 🏗 Major internal fixes so that which builder operations were available when is consistent.
  • v3.2.06 Changes

    • access headers in order
  • v3.2.05 Changes

    • UnirestInstance is autoclosable
  • v3.2.04 Changes

    • ➕ Adds chainable ifSuccess and ifFailure consumer methods to the response. Now you can handle the response like java Unirest.get("https://localhost/somewhere") .asString() .ifSuccess(r -> log.info("Yippy!")) .ifFailure(r -> log.error("Booo"));
  • v3.2.03 Changes

    • 👍 Allow the configuration of header suppliers. java Unirest.config().setDefaultHeader("trace", () -> value);