toolkit / com.sas.android.visualanalytics.sdk / HttpHandler

HttpHandler

interface HttpHandler

A class through which all HTTP/HTTPS traffic is directed.

Since
8.30

Types

HttpRequest

interface HttpRequest

Encapsulates an HTTP/HTTPS request.

HttpResponse

interface HttpResponse : Closeable

Encapsulates an HTTP/HTTPS response.

HttpResponseListener

interface HttpResponseListener

A listener for successful or failed HTTP requests.

Functions

handle

abstract fun handle(request: HttpRequest, listener: HttpResponseListener, async: Boolean, fromWebView: Boolean): Unit

Handles the given HTTP request, notifying the given listener of a successful response or failure.

Inheritors

OkHttpHandler

open class OkHttpHandler : HttpHandler

An OkHttp implementation of the HttpHandler interface.

Copyright © 2019 by SAS Institute Inc., Cary, NC, USA. All Rights Reserved.