Fork me on GitHub

Http Builder NG

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:

Name Description
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.

The library artifacts are available on Bintray and Maven Central. For Gradle:

compile 'io.github.http-builder-ng:http-builder-ng-[library-name]:0.14.1'

For Maven: