public interface HttpClient
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HttpClient.Factory |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
USER_AGENT |
| 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) 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.