Class OkHttpConnector

  • All Implemented Interfaces:

    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

    Roberto Tyley, Kohsuke Kawaguchi
    • Constructor Detail

      • OkHttpConnector

        public OkHttpConnector​(com.squareup.okhttp.OkUrlFactory urlFactory)
        Instantiates a new Ok http connector.
        urlFactory - the url factory