public interface HttpClient
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpClient.Builder |
static interface |
HttpClient.Factory |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
USER_AGENT |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
execute(HttpRequest request)
Executes the given request, following any redirects if necessary.
|
WebSocket |
openSocket(HttpRequest request,
WebSocket.Listener listener) |
HttpResponse execute(HttpRequest request) throws java.io.IOException
request - the request to execute.java.io.IOException - if an I/O error occurs.WebSocket openSocket(HttpRequest request, WebSocket.Listener listener)