Announcing Unirest 4 & Upgrade Guide #429
ryber
started this conversation in
Show and tell
Replies: 3 comments 5 replies
-
Dependency seems to be <dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-java-core</artifactId>
</dependency> instead of <dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-java</artifactId>
</dependency> |
Beta Was this translation helpful? Give feedback.
2 replies
-
is there a roadmap for version 4? Do you have a forecast for release of version 4? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello, We would like to migrate to Unirest 4 but we're facing a major challenge with the change from Apache Http Client to Java Http Client:
Thanks a lot, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Whats New?
Upgrading to Unirest 4.0
Warning: Unirest 4 is still in release candidate phase and could still have breaking changes introduced
🚨 Unirest 4 drops the Apache Http Client dependency in favor of the pure Java client 🚨. This means that unirest 4 has a dependency on Java-11. Unirest 3 will continue to be supported for bugs and minor features. If you still haven't upgraded from Java 8 now is the time!
Due to engine changes there are some differences in behavior. Efforts have been made to limit these changes. The others are documented here.
How to upgrade
kong.unirest
tokong.unirest.core
, this prevents classloader issues where Unirest 4 may conflict with previous versions which may also be on the classpath.Differences
host
header anymore. Starting with Java-12 you may only due this by setting a system property of jdk.httpclient.allowRestrictedHeaders=host. see https://bugs.openjdk.java.net/browse/JDK-8213696config.cookieSpec(String)
has been removed as it was Apache specific.Beta Was this translation helpful? Give feedback.
All reactions