use of org.kohsuke.github.extras.OkHttpConnector in project markdown-doclet by Abnaxos.
the class GithubAccessor method createCachedHttpConnector.
private OkHttpConnector createCachedHttpConnector() {
final File cacheDirectory = getCacheDirectory();
final Cache cache = new Cache(cacheDirectory, this.cacheSize);
return new OkHttpConnector(new OkUrlFactory(new OkHttpClient().setCache(cache)));
}
Aggregations