toolkit / com.sas.android.visualanalytics.sdk / OkHttpHandler / handle
handle
fun handle(request: HttpHandler.HttpRequest, listener: HttpHandler.HttpResponseListener, async: Boolean, fromWebView: Boolean): Unit
Overrides HttpHandler.handle
Handles the given HTTP request, notifying the given listener of a successful response or failure.
Parameters
request -
the [HttpRequest] to handle.
listener -
the [HttpResponseListener] to be notified of the result.
async -
if true, return immediately and asynchronously handle the request; if false, block until
the response is complete.
fromWebView -
Indicates whether the request originates from a WebView (implementors can use this flag
to maintain a separate cookie store between WebView and non-WebView requests).