public class OkHttpConnector 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-requestsDEFAULT| Constructor and Description |
|---|
OkHttpConnector(com.squareup.okhttp.OkUrlFactory urlFactory) |
public OkHttpConnector(com.squareup.okhttp.OkUrlFactory urlFactory)
public HttpURLConnection connect(URL url) throws IOException
HttpConnectorconnect in interface HttpConnectorIOExceptionCopyright © 2016. All Rights Reserved.