Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqian-hu-20230331 committed Jul 30, 2020
1 parent 68cb0e2 commit 9b968a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/huxq17/download/demo/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ public void onClick(View v) {
}

Pump.newRequest(downloadUrl)
// .setRequestBuilder(new Request.Builder()
// .addHeader("referer", "http://www.mtv-ktv.net/mv/mtv15/ktv143092.htm"))
.setRequestBuilder(new Request.Builder())
.listener(new DownloadListener(MainActivity.this) {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ public DownloadGenerator disableBreakPointDownload() {
}

/**
* Pump will connect server by this OKHttp request builder,so you can customize http request.
* For example,you can specify http method,http head and http params.
* Pump will connect server by this OKHttp request builder,so you can customize download's http request.
* For example,you can specify http method, head and params.
* If http method isn't GET,will use {@link DownloadGenerator#disableBreakPointDownload()} to improve download speed.
*
* @param httpRequestBuilder OKHttp request builder
Expand Down

0 comments on commit 9b968a7

Please sign in to comment.