-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
并增加下载示例此代码为1.0_beta
- Loading branch information
yipangzhou
committed
Sep 27, 2018
1 parent
b11ac70
commit 1606493
Showing
25 changed files
with
1,547 additions
and
108 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
retrofitclient/src/main/java/cn/ypz/com/retrofitclient/client/DownLoadApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package cn.ypz.com.retrofitclient.client; | ||
|
||
import okhttp3.ResponseBody; | ||
import retrofit2.http.GET; | ||
import retrofit2.http.Header; | ||
import retrofit2.http.POST; | ||
import retrofit2.http.Streaming; | ||
import retrofit2.http.Url; | ||
import rx.Observable; | ||
|
||
public interface DownLoadApi { | ||
|
||
@Streaming | ||
@POST | ||
Observable<ResponseBody> postFile(@Header("Accept-Encoding")String header, @Url String fileUrl); | ||
|
||
@Streaming | ||
@GET | ||
Observable<ResponseBody> getFile(@Header("Accept-Encoding")String header, @Url String fileUrl); | ||
|
||
@Streaming | ||
@POST | ||
Observable<ResponseBody> postFile(@Header("Accept-Encoding")String header, @Url String fileUrl, @Header("Accept-Ranges")String range); | ||
|
||
|
||
@Streaming | ||
@GET | ||
Observable<ResponseBody> getFile(@Header("Accept-Encoding")String header, @Url String fileUrl, @Header("Accept-Ranges")String range); | ||
|
||
} |
Oops, something went wrong.