@Contract(threading=SAFE_CONDITIONAL) public class MinimalHttpClient extends CloseableHttpClient
CloseableHttpClient. This client is
optimized for HTTP/1.1 message transport and does not support advanced
HTTP protocol functionality such as request execution via a proxy, state
management, authentication and request redirects.
Concurrent message exchanges executed by this client will get assigned to separate connections leased from the connection pool.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(org.apache.hc.core5.io.CloseMode closeMode) |
protected CloseableHttpResponse |
doExecute(org.apache.hc.core5.http.HttpHost target,
org.apache.hc.core5.http.ClassicHttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context) |
protected CloseableHttpResponse doExecute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
doExecute in class CloseableHttpClientIOExceptionpublic void close()
throws IOException
IOExceptionpublic void close(org.apache.hc.core5.io.CloseMode closeMode)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.