-
Notifications
You must be signed in to change notification settings - Fork 2.2k
NOT SUPPORT 302、307..?
Jacksgong edited this page Jun 25, 2017
·
5 revisions
SINCE V1.5.7, FileDownloader handle all cases of Redirect(300、301、302、303、307、308) internal, so you don't worry about this thing anymore.
In the old version(before v1.3.9), the redirect has been handled by okHttp(we will use the final url to fetch data-stream after redirect).
But in the latest version, since FileDownloader no longer dependent the okHttp, and the default connection component is FileDownloadUrlConnection
which just use URL#openConnection
, it doesn't handle redirect-state.
So in the current latest version, you can wrap your own FileDownloadConnection
to handle redirect by yourself, please move to the doc.
If you want to the FileDownloader uses okHttp like before v1.3.9, just use this repo or write your own FileDownloadConnection
component.
- Initialization
- Start downloading
- Pause or Stop
- Get the internal stored data
- Customizable Component
- Interface