public class OkHttp3Connector extends Object implements org.kohsuke.github.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-requestsConstructor and Description |
---|
OkHttp3Connector(okhttp3.OkHttpClient client) |
public HttpURLConnection connect(URL url) throws IOException
connect
in interface org.kohsuke.github.HttpConnector
IOException
Copyright © 2016–2019. All rights reserved.