@Deprecated public class OkHttp3Connector extends Object implements HttpConnector
HttpConnector for OkHttpClient.
Unlike HttpConnector.DEFAULT, OkHttp does response caching. Making a conditional request against GitHubAPI and receiving a
304 response does not count against the rate limit. See http://developer.github.com/v3/#conditional-requests
OkHttpConnectorDEFAULT, OFFLINE| Constructor and Description |
|---|
OkHttp3Connector(okhttp3.OkUrlFactory urlFactory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
connect(URL url)
Deprecated.
Opens a connection to the given URL.
|
@Deprecated public OkHttp3Connector(okhttp3.OkUrlFactory urlFactory)
urlFactory - the url factorypublic HttpURLConnection connect(URL url) throws IOException
HttpConnectorconnect in interface HttpConnectorurl - the urlIOException - the io exceptionCopyright © 2020. All rights reserved.