Class OkHttpConnector

  • All Implemented Interfaces:
    HttpConnector

    @Deprecated
    public class OkHttpConnector
    extends Object
    implements HttpConnector
    Deprecated.
    This class depends on an unsupported version of OkHttp. Switch to OkHttpConnector.
    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:
    Roberto Tyley, Kohsuke Kawaguchi
    See Also:
    OkHttpConnector
    • Constructor Detail

      • OkHttpConnector

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