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 IOException
request - the request to execute.followRedirects - whether to automatically follow redirects.IOException - if an I/O error occurs.void close()
throws IOException
IOException - if an I/O error occurs.Copyright © 2016. All rights reserved.