public class HttpClient extends Object implements Closeable
| Constructor and Description |
|---|
HttpClient(Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.hc.client5.http.classic.methods.HttpGet |
createHttpGet(URL url) |
org.apache.hc.client5.http.impl.classic.CloseableHttpResponse |
execute(org.apache.hc.core5.http.ClassicHttpRequest method) |
public HttpClient(Config config)
public org.apache.hc.client5.http.classic.methods.HttpGet createHttpGet(URL url)
public org.apache.hc.client5.http.impl.classic.CloseableHttpResponse execute(org.apache.hc.core5.http.ClassicHttpRequest method)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2022. All rights reserved.