2015-07-10 19:13:56 +02:00
|
|
|
.. _http-client-side-java:
|
|
|
|
|
|
|
|
|
|
Consuming HTTP-based Services (Client-Side)
|
|
|
|
|
===========================================
|
|
|
|
|
|
2015-07-16 17:37:34 +02:00
|
|
|
All client-side functionality of Akka HTTP, for consuming HTTP-based services offered by other endpoints, is currently
|
|
|
|
|
provided by the ``akka-http-core`` module.
|
|
|
|
|
|
|
|
|
|
Depending on your application's specific needs you can choose from three different API levels:
|
|
|
|
|
|
|
|
|
|
:ref:`connection-level-api-java`
|
|
|
|
|
for full-control over when HTTP connections are opened/closed and how requests are scheduled across them
|
|
|
|
|
|
|
|
|
|
:ref:`host-level-api-java`
|
|
|
|
|
for letting Akka HTTP manage a connection-pool to *one specific* host/port endpoint
|
|
|
|
|
|
|
|
|
|
:ref:`request-level-api-java`
|
|
|
|
|
for letting Akka HTTP perform all connection management
|
|
|
|
|
|
|
|
|
|
You can interact with different API levels at the same time and, independently of which API level you choose,
|
|
|
|
|
Akka HTTP will happily handle many thousand concurrent connections to a single or many different hosts.
|
2015-07-10 19:13:56 +02:00
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
|
|
connection-level
|
|
|
|
|
host-level
|
|
|
|
|
request-level
|
2016-04-25 12:01:03 +02:00
|
|
|
client-https-support
|
2015-07-10 19:13:56 +02:00
|
|
|
websocket-support
|