use of com.tevinjeffrey.rmp.scraper.RMPScraper in project Rutgers-Course-Tracker by tevjef.
the class ScraperModule method providesRMP.
@Provides
@Singleton
public RMPScraper providesRMP(OkHttpClient client) {
OkHttpClient okClient = client.clone();
okClient.setConnectTimeout(CONNECT_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
okClient.setReadTimeout(READ_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS);
//okClient.networkInterceptors().add(getCacheControlInterceptor(TimeUnit.DAYS.toMillis(7)));
return new RMPScraper(okClient);
}
Aggregations