Package-level declarations

Types

Link copied to clipboard

Utility methods used to read/write a NetworkResponse from/to the disk cache.

Link copied to clipboard

Controls the behavior around reading/writing responses from/to the disk cache.

Link copied to clipboard

Determines if the device is able to access the internet.

Link copied to clipboard

Exception for an unexpected, non-2xx HTTP response.

Link copied to clipboard
interface NetworkClient

An asynchronous HTTP client that executes NetworkRequests and returns NetworkResponses.

Link copied to clipboard
class NetworkFetcher(url: String, options: Options, networkClient: Lazy<NetworkClient>, diskCache: Lazy<DiskCache?>, cacheStrategy: Lazy<CacheStrategy>, connectivityChecker: ConnectivityChecker) : Fetcher

A Fetcher that fetches and caches images from the network.

Link copied to clipboard

A list of HTTP headers.

Link copied to clipboard
class NetworkRequest(val url: String, val method: String = HTTP_METHOD_GET, val headers: NetworkHeaders = NetworkHeaders.EMPTY, val body: NetworkRequestBody? = null)

Represents an HTTP request.

Link copied to clipboard
Link copied to clipboard
class NetworkResponse(val code: Int = HTTP_RESPONSE_OK, val requestMillis: Long = 0, val responseMillis: Long = 0, val headers: NetworkHeaders = NetworkHeaders.EMPTY, val body: NetworkResponseBody? = null, val delegate: Any? = null)

Represents an HTTP response.

Link copied to clipboard

Functions

Link copied to clipboard

Set the HTTP request body for any network operations performed by this image request.

Link copied to clipboard

Set the HTTP request headers for any network operations performed by this image request.

Link copied to clipboard

Set the HTTP request method for any network operations performed by this image request.

Link copied to clipboard