compile group: "org.http4k", name: "http4k-client-apache", version: "2.35.1"
compile group: "org.http4k", name: "http4k-client-okhttp", version: "2.35.1"
Supported HTTP client adapter APIs are wrapped to provide an
HttpHandler interface in 1 LOC.
Activate streaming mode by passing a
BodyMode (default is non-streaming).
These examples are for the Apache HTTP client, but the API is similar for the others:
Alternatively, all client adapter modules allow for custom configuration of the relevant Client configuration by