Attribute\Release type | Stable |
---|---|
Version | 1.0.x |
Branch | master |
CI Build status | |
Test coverage | |
Library (Maven) | oss.jfrog.org snapshot |
Java/Groovy HTTP Client library.
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)
❗ Via JCenter repository
compile "io.i-t:http:1.0.0"
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")
}