note: documentation may contain updates for 1.8.0, which is not yet released
Methanol¶
Java enjoys a neat, built-in HTTP client. However, it lacks key HTTP features like multipart uploads, caching and response decompression.
Methanol comes in to fill these gaps. The library comprises a set of lightweight, yet powerful extensions aimed at making it much easier & more productive to work with java.net.http
.
You can say it's an HttpClient
wrapper, but you'll see it almost seamlessly integrates with the standard API you might already know.
Methanol isn't invasive. The core library has zero runtime dependencies. However, special attention is given to object mapping, so integration with libraries like Jackson or Gson becomes a breeze.
Installation¶
Gradle¶
implementation 'com.github.mizosoft.methanol:methanol:1.7.0'
Maven¶
<dependency>
<groupId>com.github.mizosoft.methanol</groupId>
<artifactId>methanol</artifactId>
<version>1.7.0</version>
</dependency>
Contributing¶
See CONTRIBUTING