@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.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
close(CloseMode closeMode)
Closes this process or endpoint and releases any system resources associated
with it.
|
protected CloseableHttpResponse |
doExecute(HttpHost target,
ClassicHttpRequest request,
HttpContext context) |
execute, execute, execute, execute, execute, execute, execute, executeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteOpenprotected CloseableHttpResponse doExecute(HttpHost target, ClassicHttpRequest request, HttpContext context) throws IOException
doExecute 在类中 CloseableHttpClientIOExceptionpublic void close()
throws IOException
IOExceptionpublic void close(CloseMode closeMode)
ModalCloseablecloseMode - How to close the receiver.Copyright © 2023. All rights reserved.