Package org.kohsuke.github.extras
Class OkHttp3Connector
java.lang.Object
org.kohsuke.github.extras.OkHttp3Connector
- All Implemented Interfaces:
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:
- Roberto Tyley, Kohsuke Kawaguchi
- See Also:
-
Field Summary
Fields inherited from interface org.kohsuke.github.HttpConnector
DEFAULT, OFFLINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Opens a connection to the given URL.
-
Constructor Details
-
OkHttp3Connector
Deprecated.Instantiates a new Ok http 3 connector.- Parameters:
urlFactory- the url factory
-
-
Method Details
-
connect
Deprecated.Description copied from interface:HttpConnectorOpens a connection to the given URL.- Specified by:
connectin interfaceHttpConnector- Parameters:
url- the url- Returns:
- the http url connection
- Throws:
IOException- the io exception
-