retrofit2.http.Streaming类的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(628)

本文整理了Java中retrofit2.http.Streaming类的一些代码示例,展示了Streaming类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Streaming类的具体详情如下:
包路径:retrofit2.http.Streaming
类名称:Streaming

Streaming介绍

暂无

代码示例

代码示例来源:origin: line/armeria

@Streaming
  @GET("/large-stream")
  CompletableFuture<ResponseBody> largeStream();
}

代码示例来源:origin: influxdata/influxdb-java

@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);
}

代码示例来源:origin: influxdata/influxdb-java

@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);

代码示例来源:origin: leftcoding/GankLy

@Streaming
//    @GET("gankly.apk")
  @GET("")
  Observable<ResponseBody> downloadApk();

代码示例来源:origin: line/line-bot-sdk-java

/**
 * Method for Retrofit.
 *
 * @see LineMessagingClient#getMessageContent(String)
 */
@Streaming
@GET("v2/bot/message/{messageId}/content")
Call<ResponseBody> getMessageContent(@Path("messageId") String messageId);

代码示例来源:origin: ardovic/Open-Source-Android-Weather-App

@GET(IMAGE_PATH)
  @Streaming
  Call<ResponseBody> getIcon(@Path("iconId") String iconId);
}

代码示例来源:origin: org.influxdb/influxdb-java

@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);
}

代码示例来源:origin: org.influxdb/influxdb-java

@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);

代码示例来源:origin: yewei02538/TodayNewsVideoDownloader

/**
   * 下载视频
   */
  @Streaming
  @GET
  Call<ResponseBody> downloadVideo(@Url String path);
}

代码示例来源:origin: lygttpod/RxHttpUtils

/**
   * 大文件官方建议用 @Streaming 来进行注解,不然会出现IO异常,小文件可以忽略不注入
   *
   * @param fileUrl 地址
   * @return ResponseBody
   */
  @Streaming
  @GET
  Observable<ResponseBody> downloadFile(@Url String fileUrl);
}

代码示例来源:origin: burgessjp/GanHuoIO

@GET
  @Streaming
  Single<ResponseBody> download(@Url String url);
}

代码示例来源:origin: bigeyechou/Rxjava2Retrofit2NetFrame

/**
 * 通过地址下载一个文件
 */
@GET()
@Streaming
Call<ResponseBody> downloadFile(@Url String fileUrl);

代码示例来源:origin: FussenYu/MVP_Project

@Streaming
  @GET
  Observable<ResponseBody> downloadFile(@Url String fileUrl);
}

代码示例来源:origin: Lauzy/TicktockMusic

@Streaming
  @GET
  Observable<ResponseBody> downloadLrcFile(@Url String lrcUrl);
}

代码示例来源:origin: Azure/azure-libraries-for-java

@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();

代码示例来源:origin: rickfast/consul-client

@Streaming
@GET("snapshot")
Call<ResponseBody> generateSnapshot(@QueryMap Map<String, Object> query);

代码示例来源:origin: Azure/azure-libraries-for-java

@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();

代码示例来源:origin: Azure/azure-libraries-for-java

@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();

代码示例来源:origin: jenkinsci/jira-steps-plugin

@Streaming
 @GET
 Call<ResponseBody> downloadFileWithDynamicUrl(@Url String fileUrl);
}

代码示例来源:origin: zhpanvip/Retrofit2

@Streaming
@GET//("download.do")
Observable<ResponseBody> download(@Url String url);//直接使用网址下载

相关文章

Streaming类方法