abstract class Client
(source)
A generic Client for fetching resources via HTTP/s.
Abstract base class / interface for clients implementing the concept-fetch
component.
The Request/Response API is inspired by the Web Fetch API: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
Client()
A generic Client for fetching resources via HTTP/s. |
val defaultHeaders: Headers
List of default headers that should be added to every request unless overridden by the headers in the request. |
abstract fun fetch(request: Request): Response
Starts the process of fetching a resource from the network as described by the Request object. |
class HttpURLConnectionClient : Client
HttpURLConnection implementation of Client. |
|
class OkHttpClient : Client
Client implementation using OkHttp. |