public interface HttpClient
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HttpClient.Factory |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
This responsibility moved to Factory
|
HttpResponse |
execute(HttpRequest request)
Executes the given request, following any redirects if necessary.
|
HttpResponse |
execute(HttpRequest request,
boolean followRedirects)
Deprecated.
All call sites found set
followRedirects to true. Use
execute(HttpRequest). |
@Deprecated HttpResponse execute(HttpRequest request, boolean followRedirects) throws java.io.IOException
followRedirects to true. Use
execute(HttpRequest).request - the request to execute.followRedirects - whether to automatically follow redirects.java.io.IOException - if an I/O error occurs.HttpResponse execute(HttpRequest request) throws java.io.IOException
request - the request to execute.java.io.IOException - if an I/O error occurs.@Deprecated
void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurs.