public interface HttpClient
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HttpClient.Factory |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connections associated with this client.
|
HttpResponse |
execute(HttpRequest request,
boolean followRedirects)
Executes the given request.
|
HttpResponse execute(HttpRequest request, boolean followRedirects) throws java.io.IOException
request - the request to execute.followRedirects - whether to automatically follow redirects.java.io.IOException - if an I/O error occurs.void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.