downloadGif

open suspend override fun downloadGif(url: String, maxSizeInBytes: Long, sink: Sink): NetworkResponse<Long>

Downloads a GIF from Giphy's CDN into sink, without Wire credentials. Fails unless url and the final address after redirects are HTTPS giphy.com addresses, and stops reading once the body exceeds maxSizeInBytes.

Return

the number of bytes written