Skip to content

INFINITE-TECHNOLOGY/HTTP

Repository files navigation

Infinite Technology ∞ HTTP

Attribute\Release type Stable
Version 1.0.x
Branch master
CI Build status Build Status
Test coverage codecov
Library (Maven) oss.jfrog.org snapshot

Purpose

Java/Groovy HTTP Client library.

Features

This HTTP Client library supports the following connection features:

  • HTTP (plaintext)
  • HTTPS
  • HTTPS without server certificate validations (i.e. self-signed certificates)
  • Basic Authentication
  • AWS Signature v4
  • Proxy
  • Connection timeout
  • Read timeout
  • Detailed logging (via BlackBox)

Gradle

❗ Via JCenter repository

compile "io.i-t:http:1.0.0"

Try it now!

import io.infinite.http.HttpRequest
import io.infinite.http.HttpResponse
import io.infinite.http.SenderDefaultHttps

        HttpRequest httpRequest = new HttpRequest(
                url: "https://google.com",
                method: "GET"
        )
        HttpResponse httpResponse = new HttpResponse()
        new SenderDefaultHttps().sendHttpMessage(httpRequest, httpResponse)
        if (httpResponse.status != 200) {
            throw new Exception("Error HTTP Code")
        }