Skip to content

HTTP Client

//port_http_client

port_http_client

[jvm]

This port provides a common interface for using HTTP clients. Many adapters can be developed to use different technologies.

Its main functionalities are:

  • HTTP, HTTPS and [HTTP/2](https://en.wikipedia.org/wiki/HTTP/2) support
  • [Mutual TLS](https://en.wikipedia.org/wiki/Mutual_authentication)
  • Body encoding/decoding
  • Request/response exchange
  • Form submissions
  • Cookie management
  • File uploading/downloading

Install the Dependency

This module is not meant to be used directly. You should include an Adapter implementing this feature (as /http_client_ahc) in order to create HTTP clients.

Create an HTTP client

You create an HTTP Client instance with default options as follows:

Packages

Name
com.hexagonkt.http.client

Comments