HTTP Client

A simple to use http/https client that can be extended to build beautiful api clients.

Getting Started

HTTPClient client = new HTTPClient();
client.setBaseUrl("https://jsonplaceholder.typicode.com");
GraphArray data = client.get("/todos").graph().array();
for(GraphElement e : data) {
    System.out.println(
        (e.get("completed").bool() ? "✓" : "✘") +
        " - " +
        e.get("title").string()
    );
}

Maven

<dependency>
    <groupId>org.javawebstack</groupId>
    <artifactId>http-client</artifactId>
    <version>1.0.1</version>
</dependency>

Gradle

compile "org.javawebstack:http-client:1.0.1"

None by JavaWebStack Maintainers, 2024 - 2025. All Rights Reserved. Built with Typemill.