Class HttpClients

java.lang.Object
com.appscend.utilities.HttpClients

public final class HttpClients extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    executeAndClose(okhttp3.OkHttpClient client, okhttp3.Request request)
    Executes the request and closes the response unread.
    static okhttp3.OkHttpClient
    Session-cookie client for VAST, tracking and SSAI requests; also allows TLS 1.0/1.1 and cleartext.
    static Executor
    Single background thread for license and usage requests, so they never queue ahead of ad fetches.
    static okhttp3.OkHttpClient
    Cookie-less client with OkHttp defaults, for license and usage requests.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • plain

      public static okhttp3.OkHttpClient plain()
      Cookie-less client with OkHttp defaults, for license and usage requests.
    • panelExecutor

      public static Executor 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