imageRequest

open suspend fun imageRequest(url: String): CDNRequest

Transforms a request for loading an image from the CDN.

Implementations that perform blocking or network I/O must use withContext to switch to the appropriate dispatcher (e.g. Dispatchers.IO).

Return

A CDNRequest holding the modified request URL and/or custom headers to include with the request.

Parameters

url

Original CDN url for the image.