本文整理了Java中retrofit2.http.Streaming.<init>()
方法的一些代码示例,展示了Streaming.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Streaming.<init>()
方法的具体详情如下:
包路径:retrofit2.http.Streaming
类名称:Streaming
方法名:<init>
暂无
代码示例来源: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: AriesHoo/FastLib
/**
* 大文件官方建议用 @Streaming 来进行注解,不然会出现IO异常,小文件可以忽略
*
* @param fileUrl 地址
* @param header 可增加header信息
* @return ResponseBody
*/
@Streaming
@GET
Observable<ResponseBody> downloadFile(@Url String fileUrl, @HeaderMap Map<String, Object> header);
代码示例来源:origin: RuffianZhong/Rx-Mvp
/**
* 断点续传下载
*
* @param range 断点下载范围 bytes= start - end
* @param url 下载地址
* @return
* @Streaming 防止内容写入内存, 大文件通过此注解避免OOM
*/
@Streaming
@GET
Observable<ResponseBody> download(@Header("RANGE") String range, @Url String url);
代码示例来源:origin: Azure/azure-libraries-for-java
@Headers({ "Content-Type: application/octet-stream", "x-ms-logging-context: com.microsoft.azure.management.appservice.WebApps zipDeploy", "x-ms-body-logging: false" })
@POST("api/zipdeploy")
@Streaming
Observable<Void> zipDeploy(@Body RequestBody zipFile);
}
代码示例来源:origin: zulip/zulip-android
@Streaming
@Multipart
@POST("v1/user_uploads")
Call<UploadResponse> upload(@Part MultipartBody.Part file);
内容来源于网络,如有侵权,请联系作者删除!