1 2 3 4 5 6 7 8 9 10 11 12 13
package ml.docilealligator.infinityforreddit.apis; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Streaming; import retrofit2.http.Url; public interface DownloadFile { @Streaming @GET() Call<ResponseBody> downloadFile(@Url String fileUrl); }