Class HttpClients
java.lang.Object
com.appscend.utilities.HttpClients
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteAndClose(okhttp3.OkHttpClient client, okhttp3.Request request) Executes the request and closes the response unread.static okhttp3.OkHttpClientSession-cookie client for VAST, tracking and SSAI requests; also allows TLS 1.0/1.1 and cleartext.static ExecutorSingle background thread for license and usage requests, so they never queue ahead of ad fetches.static okhttp3.OkHttpClientplain()Cookie-less client with OkHttp defaults, for license and usage requests.
-
Method Details
-
plain
public static okhttp3.OkHttpClient plain()Cookie-less client with OkHttp defaults, for license and usage requests. -
panelExecutor
Single background thread for license and usage requests, so they never queue ahead of ad fetches. -
newSessionClient
public static okhttp3.OkHttpClient newSessionClient()Session-cookie client for VAST, tracking and SSAI requests; also allows TLS 1.0/1.1 and cleartext. -
executeAndClose
public static void executeAndClose(okhttp3.OkHttpClient client, okhttp3.Request request) throws IOException Executes the request and closes the response unread.- Throws:
IOException
-