Package org.kohsuke.github.extras
Class OkHttpConnector
java.lang.Object
org.kohsuke.github.extras.OkHttpConnector
- 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
ConstructorDescriptionOkHttpConnector
(com.squareup.okhttp.OkUrlFactory urlFactory) Deprecated.Instantiates a new Ok http connector. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Opens a connection to the given URL.
-
Constructor Details
-
OkHttpConnector
public OkHttpConnector(com.squareup.okhttp.OkUrlFactory urlFactory) Deprecated.Instantiates a new Ok http connector.- Parameters:
urlFactory
- the url factory
-
-
Method Details
-
connect
Deprecated.Description copied from interface:HttpConnector
Opens a connection to the given URL.- Specified by:
connect
in interfaceHttpConnector
- Parameters:
url
- the url- Returns:
- the http url connection
- Throws:
IOException
- the io exception
-
OkHttpGitHubConnector
.