public interface HttpClient
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
HttpClient.Factory |
| 限定符和类型 | 方法和说明 |
|---|---|
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.