Http Builder NG is a modern Groovy DSL for making http requests. It requires Java 8 and a modern Groovy. It is built against Groovy 2.4.x, but it doesn't make any assumptions about which version of Groovy you are using. The main goal of Http Builder NG is to allow you to make http requests in a natural and readable way. See the User Guide for more details.
Warning: The project group-id was changed as of 0.13.0 from `org.codehaus.groovy.modules` to `io.github.http-builder-ng`. This was the only change in the 0.13.0 release. All releases going forward will use this new group-id. Please be sure to update your dependency coordinates.
The following client implementations are available:
|core||The default implementation based on the core Java `HttpURLConnection' class. This library also includes all the common library components used by other client implementations.|
|apache||Client implementation based on the Apache HttpComponents client.|
|okhttp||Client implementation based on the OkHttp client library. Note that this implementation does not support request/response compression.|
The library artifacts are available on Bintray and Maven Central. For Gradle:
<dependency> <groupId>io.github.http-builder-ng</groupId> <artifactId>http-builder-ng-[library-name]</artifactId> <version>0.13.3</version> </dependency>