android-components / mozilla.components.lib.fetch.okhttp / OkHttpClient

OkHttpClient

class OkHttpClient : Client (source)

Client implementation using OkHttp.

Constructors

<init>

OkHttpClient(client: OkHttpClient = OkHttpClient())

Client implementation using OkHttp.

Inherited Properties

defaultHeaders

val defaultHeaders: Headers

List of default headers that should be added to every request unless overridden by the headers in the request.

Functions

fetch

fun fetch(request: Request): Response

Starts the process of fetching a resource from the network as described by the Request object.