public class OkHttpClient extends java.lang.Object implements HttpClient
Modifier and Type | Class and Description |
---|---|
static class |
OkHttpClient.Factory |
USER_AGENT
Constructor and Description |
---|
OkHttpClient(okhttp3.OkHttpClient client,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
execute(HttpRequest request)
Executes the given request, following any redirects if necessary.
|
public HttpResponse execute(HttpRequest request) throws java.io.IOException
HttpClient
execute
in interface HttpClient
request
- the request to execute.java.io.IOException
- if an I/O error occurs.