public class HttpClient extends Object implements Closeable
| Constructor and Description |
|---|
HttpClient(Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.http.client.methods.HttpGet |
createHttpGet(URL url) |
Optional<Proxy> |
createProxy(String proxy) |
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpRequestBase method) |
public HttpClient(Config config)
public Optional<Proxy> createProxy(String proxy) throws MalformedURLException
MalformedURLExceptionpublic org.apache.http.client.methods.HttpGet createHttpGet(URL url)
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpRequestBase method)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020. All rights reserved.