Class OkHttpTransport

java.lang.Object
africa.sendbyte.http.OkHttpTransport
All Implemented Interfaces:
HttpTransport

public final class OkHttpTransport extends Object implements HttpTransport
Default HttpTransport backed by OkHttp.

Applies the base URL, bearer authentication, JSON content headers, and a SDK User-Agent to every request. Sync uses OkHttp's blocking call; async uses OkHttp's native Call.enqueue(Callback) dispatcher.