public class ProxyHTTPClient extends Object implements HTTPClient
| Constructor and Description |
|---|
ProxyHTTPClient(String host) |
ProxyHTTPClient(String host,
int port) |
ProxyHTTPClient(String host,
int port,
String scheme) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close http client and release resource
|
HTTPResponse |
fetch(HTTPRequest request)
Fetch HTTP response by given HTTP request,
|
public ProxyHTTPClient(String host)
public ProxyHTTPClient(String host, int port)
public HTTPResponse fetch(HTTPRequest request) throws IOException, URISyntaxException
HTTPClientfetch in interface HTTPClientrequest - Specify which to be fetched.IOException - connection problem.URISyntaxException - url syntax problem.public void close()
HTTPClientclose in interface HTTPClientCopyright © 2018. All rights reserved.