Class OkHttpConnector

java.lang.Object
org.kohsuke.github.extras.okhttp3.OkHttpConnector
All Implemented Interfaces:
HttpConnector

@Deprecated public class OkHttpConnector extends Object implements HttpConnector
Deprecated.
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

Author:
Liam Newman
  • Constructor Details

    • OkHttpConnector

      public OkHttpConnector(okhttp3.OkHttpClient client)
      Deprecated.
      Instantiates a new Ok http connector.
      Parameters:
      client - the client
    • OkHttpConnector

      public OkHttpConnector(okhttp3.OkHttpClient client, int cacheMaxAge)
      Deprecated.
      Instantiates a new Ok http connector.
      Parameters:
      client - the client
      cacheMaxAge - the cache max age
  • Method Details