@Streaming @GET("/large-stream") CompletableFuture<ResponseBody> largeStream(); }
@Streaming @POST("query?chunked=true") public Call<ResponseBody> query(@Query(DB) String db, @Query(value = Q, encoded = true) String query, @Query(CHUNK_SIZE) int chunkSize, @Query(value = PARAMS, encoded = true) String params); }
@Streaming @GET("query?chunked=true") public Call<ResponseBody> query(@Query(DB) String db, @Query(value = Q, encoded = true) String query, @Query(CHUNK_SIZE) int chunkSize);
@Streaming // @GET("gankly.apk") @GET("") Observable<ResponseBody> downloadApk();
/** * Method for Retrofit. * * @see LineMessagingClient#getMessageContent(String) */ @Streaming @GET("v2/bot/message/{messageId}/content") Call<ResponseBody> getMessageContent(@Path("messageId") String messageId);
@GET(IMAGE_PATH) @Streaming Call<ResponseBody> getIcon(@Path("iconId") String iconId); }
@Streaming @POST("query?chunked=true") public Call<ResponseBody> query(@Query(DB) String db, @Query(value = Q, encoded = true) String query, @Query(CHUNK_SIZE) int chunkSize, @Query(value = PARAMS, encoded = true) String params); }
@Streaming @GET("query?chunked=true") public Call<ResponseBody> query(@Query(DB) String db, @Query(value = Q, encoded = true) String query, @Query(CHUNK_SIZE) int chunkSize);
/** * 下载视频 */ @Streaming @GET Call<ResponseBody> downloadVideo(@Url String path); }
/** * 大文件官方建议用 @Streaming 来进行注解,不然会出现IO异常,小文件可以忽略不注入 * * @param fileUrl 地址 * @return ResponseBody */ @Streaming @GET Observable<ResponseBody> downloadFile(@Url String fileUrl); }
@GET @Streaming Single<ResponseBody> download(@Url String url); }
/** * 通过地址下载一个文件 */ @GET() @Streaming Call<ResponseBody> downloadFile(@Url String fileUrl);
@Streaming @GET Observable<ResponseBody> downloadFile(@Url String fileUrl); }
@Streaming @GET Observable<ResponseBody> downloadLrcFile(@Url String lrcUrl); }
@Headers({ "x-ms-logging-context: com.microsoft.azure.management.appservice.WebApps streamApplicationLogs", "x-ms-body-logging: false" }) @GET("api/logstream/application") @Streaming Observable<ResponseBody> streamApplicationLogs();
@Streaming @GET("snapshot") Call<ResponseBody> generateSnapshot(@QueryMap Map<String, Object> query);
@Headers({ "x-ms-logging-context: com.microsoft.azure.management.appservice.WebApps streamTraceLogs", "x-ms-body-logging: false" }) @GET("api/logstream/kudu/trace") @Streaming Observable<ResponseBody> streamTraceLogs();
@Headers({ "x-ms-logging-context: com.microsoft.azure.management.appservice.WebApps streamDeploymentLogs", "x-ms-body-logging: false" }) @GET("api/logstream/kudu/deployment") @Streaming Observable<ResponseBody> streamDeploymentLogs();
@Streaming @GET Call<ResponseBody> downloadFileWithDynamicUrl(@Url String fileUrl); }
@Streaming @GET//("download.do") Observable<ResponseBody> download(@Url String url);//直接使用网址下载