Class PlainOkHttpExecutor

java.lang.Object
org.dmfs.httpessentials.okhttp.PlainOkHttpExecutor
All Implemented Interfaces:
org.dmfs.httpessentials.client.HttpRequestExecutor

public final class PlainOkHttpExecutor extends Object implements org.dmfs.httpessentials.client.HttpRequestExecutor
An HttpRequestExecutor based on OkHttp.
  • Constructor Details

    • PlainOkHttpExecutor

      public PlainOkHttpExecutor(org.dmfs.jems.single.Single<okhttp3.OkHttpClient> okHttpClient)
  • Method Details

    • execute

      public <T> T execute(URI uri, org.dmfs.httpessentials.client.HttpRequest<T> request) throws IOException, org.dmfs.httpessentials.exceptions.ProtocolError, org.dmfs.httpessentials.exceptions.ProtocolException
      Specified by:
      execute in interface org.dmfs.httpessentials.client.HttpRequestExecutor
      Throws:
      IOException
      org.dmfs.httpessentials.exceptions.ProtocolError
      org.dmfs.httpessentials.exceptions.ProtocolException