A Destination represents the receiver of HTTP requests, and it is
identified by an Origin.
Destination holds a pool of Connections, but allows to create unpooled
connections if the application wants full control over connection management via
newConnection(Promise).
Destinations may be obtained via HttpClient#resolveDestination(Request).
| Modifier and Type | Method and Description |
|---|---|
| public ConnectionPool | |
| public HttpClient | |
| public Origin | |
| public ProxyConfiguration. | |
| public boolean | |
| public void | newConnection(Promise<Connection>
the promise of a new, unpooled, promise)ConnectionCreates asynchronously a new, unpooled, |
| public default CompletableFuture | newConnection()
Creates asynchronously a new, unpooled, |
| public void | send(Request
the request to send to this destination request, Response.the listener that receives response events listenerSends the given request to this destination. |
| getConnectionPool | back to summary |
|---|---|
public ConnectionPool getConnectionPool()
| |
| getHttpClient | back to summary |
|---|---|
public HttpClient getHttpClient()
| |
| getOrigin | back to summary |
|---|---|
public Origin getOrigin()
| |
| getProxy | back to summary |
|---|---|
public ProxyConfiguration.
| |
| isSecure | back to summary |
|---|---|
public boolean isSecure()
| |
| newConnection | back to summary |
|---|---|
| public void newConnection(Promise<Connection> promise) Creates asynchronously a new, unpooled,
Use
| |
| newConnection | back to summary |
|---|---|
| public default CompletableFuture Creates asynchronously a new, unpooled,
| |
| send | back to summary |
|---|---|
| public void send(Request request, Response. Sends the given request to this destination. You can use this method to send the request to a specific destination that may be different from the request authority. For example when
| |