download

abstract suspend fun download(url: String, accepts: String): ByteArray?

Downloads data from the specified URL.

Return

The downloaded data as a byte array, or null if the download failed.

Parameters

url

The URL to download data from.

accepts

The accept header value for the download request.